在主函数中完成:调用随机函数输出两个1-100之间的随机整数,并将较大的整数输出到屏幕上。
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
srand((unsigned)time(NULL));
int a = rand() % 100 + 1;
int b = rand() % 100 + 1;
printf("%d %d\n",a,b);
printf("%d", a > b? a:b);
return 0;
}