0
点赞
收藏
分享

微信扫一扫

【无标题】c语言 学习冒泡之前应该学习的几个图形

迎月兮 2022-01-24 阅读 62
c语言

#include <stdio.h>

/*

*  

* *

* * *

* * * *

* * * * *

*/

int main(int argc, char const *argv[])

{

    /* code */

    for (int i = 0; i < 5; i++) // 控制行数

    {

        /* code */

        for (int j = 0; j <= i; j++)

        {

            /* code */

            printf("* ");

        }

        printf("\n");

    }

    return 0;

}

举报

相关推荐

0 条评论