/*This is a test*/
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<time.h>
int main()
{
char c='y';
int guess,num,count=1;
while (c == 'y')
{
srand(time(NULL));
num = rand() % 100 + 1;
do{
scanf("%d", &guess);
if (guess > num)
printf("too high\n");
else if (guess < num)
printf("too low\n");
else
printf("right!\n");
count++;
} while (count <= 10 && guess != num);
printf("game over!continue?y/n\n");
count = 1;
getchar();
scanf("%c", &c);
}
}