首页 > 代码库 > 嵌套for循环

嵌套for循环

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

 

 

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

嵌套for循环