前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >C语言 – 数字雨

C语言 – 数字雨

作者头像
Blank.
发布2023-04-12 21:09:11
1.4K0
发布2023-04-12 21:09:11
举报
文章被收录于专栏:Blank

效果图

代码语言:javascript
复制
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>

int main()

{
    system("color  0c");//颜色
    int i;
    int a = rand();
    int b = rand();
    int c = rand();
    int d = rand();
    int e = rand();
    int f = rand();

    for (i = 1; i <= 100000; i++)


    {
        int a = rand();
        int b = rand();
        int c = rand();
        int d = rand();
        int e = rand();
        int f = rand();
        int g = rand();
        int h = rand();
        int j = rand();
        int k = rand();
        int l = rand();
        int m = rand();
        int n = rand();
        int o = rand();
        int p = rand();
        int q = rand();
        int r = rand();
        int s = rand();
        int t = rand();
        int u = rand();
        int v = rand();
        int w = rand();



        printf("%d", a);
        printf(" ");
        printf("%d", b);
        printf(" ");
        printf("%d", c);
        printf(" ");
        printf("%d", d);
        printf(" ");
        printf("%d", e);
        printf(" ");
        printf("%d", f);
        printf(" ");
        printf("%d", g);
        printf(" ");
        printf("%d", h);
        printf(" ");
        printf("%d", j);
        printf(" ");
        printf("%d", k);
        printf(" ");
        printf("%d", l);
        printf(" ");
        printf("%d", m);
        printf(" ");
        printf("%d", n);
        printf(" ");
        printf("%d", o);
        printf(" ");
        printf("%d", p);
        printf(" ");
        printf("%d", q);
        printf(" ");
        printf("%d", r);
        printf(" ");
        printf("%d", s);
        printf(" ");
        printf("%d", t);
        printf(" ");
        printf("%d", u);
        printf(" ");
        printf("%d", v);
        printf(" ");
        printf("%d", w);
        printf(" ");


        printf("\n");
        Sleep(10);


    }

}
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 效果图
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档