//小游戏:猜数字 随机一个1-100之间的数,根据数据输入进行提示#include <stdlib.h>#include <time.h>int main(void){int value=0;int num=0;srand((unsigned int) time(NULL));num=rand()%100+1; //1-100while(1){scanf("%d",&value);if(num>value){printf("您猜小了\n");}else if(num<value){printf("您猜大了\n");}else if(num=value){printf("恭喜您猜对了\n");break;}}return 0;}