嵌套for循环

#include<stdio.h>
int main()
{
int i,j;
for(i=1;i<10;i++)
{
for(j=1;j<10;j++)
{
printf("$");
}
printf(" ");
}
return 0;
}

$$$$$$$$$
$$$$$$$$$
$$$$$$$$$
$$$$$$$$$
$$$$$$$$$
$$$$$$$$$
$$$$$$$$$
$$$$$$$$$
$$$$$$$$$
Press any key to continue

原文地址:https://www.cnblogs.com/flywolf601/p/5914808.html