标签:io sp amp bs return nbsp ca print c
#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;
}
标签:io sp amp bs return nbsp ca print c
原文地址:http://www.cnblogs.com/hellokitty1/p/4052083.html