#include<stdio.h>
#include<stdlib.h>
#include<time.h>
main()
{
int i;
int random = rand()%100+1;
scanf("%d",&i);
srand(time(NULL));
if(i>random)
printf(“输入的数小\n”);
else
printf(“输入的数大\n”);
}
2021-02-20
最新推荐文章于 2022-04-02 17:08:18 发布
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
main()
{
int i;
int random = rand()%100+1;
scanf("%d",&i);
srand(time(NULL));
if(i>random)
printf(“输入的数小\n”);
else
printf(“输入的数大\n”);
}