C语言 – 数字雨

效果图

l8ftp1l6.png


#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("
");
        Sleep(10);


    }

}
THE END
喜欢就支持一下吧
点赞8 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

夸夸
夸夸
还有吗!没看够!
取消
昵称表情代码图片

    暂无评论内容