C语言实例六

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

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

#include "stdio.h"
int main()
{
printf("用 * 号输出字母 C!\n");
printf(" ****\n");
printf(" *\n");
printf(" * \n");
printf(" ****\n");
}

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44097082/article/details/95304387