#include <stdio.h>
#include <time.h>
int main (void)
{ int num,answer,count=0;
srand(time(NULL));
answer = rand()%100+900;
while (1){
printf("请输入您的数字:\n");
scanf("%d",&num);
if(num==answer){
printf("恭喜你!猜对啦!!\n");
break;
}
else {
if(num<answer){
printf("您的数字小了,、请继续" );}
else{
printf("您的数字大了,。请继续");
}
}
}
getch ();
return 0;
}