嵌套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

posted @ 2016-09-27 23:41  魔都初心  阅读(121)  评论(0编辑  收藏  举报