C 练习实例6

C语言教程评论

C 练习实例6

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

程序分析:可先用'*'号在纸上写出字母C,再分行输出。文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili6.html

程序源代码:文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili6.html

实例

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

以上实例输出结果为:文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili6.html

用 * 号输出字母 C!
 ****
 *
 * 
 ****
文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili6.html文章源自公式库网-https://www.gongshiku.com/html/202112/c-lianxishili6.html
运营不易,
感谢支持!
weinxin
我的微信
我的微信公众号
我的微信公众号扫一扫
weinxin
我的公众号
 最后更新:2021-12-7
公式库网
  • 本文由 公式库网 发表于 2021年12月4日22:53:23
  • 转载请务必保留本文链接:https://www.gongshiku.com/html/202112/c-lianxishili6.html

发表评论