c语言程序设计 第五章 循环结构 for语句的多样性
c语言程序设计 第五章 循环结构 for语句的多样性
日期:2007-05-20 09:17:07 人气:1
同意楼上,已经很不错了。
小弟还有一法:(循环和选择综合)
for(int i=0;i<16;i++)
{
printf("%c",'*');
if((i+4)%4==0)
printf("%c",'\n');
}
最简洁的:
for(int i=0;i<4;i++)
printf("%s\n","****");