Welcome

首页 / 软件开发 / C语言 / 用*号输出字母C的图案

用*号输出字母C的图案2011-10-07 本站 smiling cat

题目:用*号输出字母C的图案。

1.程序分析:可先用"*"号在纸上写出字母C,再分行输出。

2.程序源代码:

#include "stdio.h"
#include "conio.h"
main()
{
printf("Hello C-world! ");
printf(" **** ");
printf(" * ");
printf(" * ");
printf(" **** ");
getch();
}
3.Visual C++ 6.0下调试通过,如图: