其他分享
首页 > 其他分享> > 实验二5

实验二5

作者:互联网

#include<stdio.h>
#include<stdlib.h>
#include<time.h>
const int N = 5;
int main()
{
    int x, n;
    srand(time(0));
    for (n = 1; n <= N; n++)
    {
        x = rand() % 32;
        printf("%3d", x);
    }
    printf("\n");
    return 0;
}

 

标签:include,const,int,srand,实验,time,main
来源: https://www.cnblogs.com/dszfwscgz/p/15535160.html