/*留着以后做大程序的时候看看*/
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{ int n,number;
srand((unsigned)time(NULL));
number=rand()%100+1;
printf("输入一个数 ");
scanf("%d",&n);
while(n!=number)
{ if(n>number)
{printf("big ");
scanf("%d",&n); }
if(n<number)
{printf("small ");
scanf("%d",&n); } }
printf("you are right");
return 0; }