分类: C/C++
2008-04-11 20:45:26
C语言的趣味方面
Author:yuexingtian
Date:Friday, April 11, 2008
打印楼梯,同时在楼梯上方打印两个笑脸:
#include"stdio.h"
main()
{
int i,j;
printf("\1\1\n");/*输出两个笑脸*/
for(i=1;i<11;i++)
{
for(j=1;j<=i;j++)
printf("%c%c",219,219);
printf("\n");
}
getch();
}
chinaunix网友2008-04-13 19:11:16
圹 圹圹 圹圹圹 圹圹圹圹 圹圹圹圹圹 圹圹圹圹圹圹 圹圹圹圹圹圹圹 圹圹圹圹圹圹圹圹 圹圹圹圹圹圹圹圹圹 圹圹圹圹圹圹圹圹圹圹