#include<stdio.h>#include<stdlib.h>#include<time.h>int main(){ srand((unsigned)time(NULL)); int number=rand(); int guessNumber; do { printf("Your number is "); scanf("%d",&guessNumber); if(number!=guessNumber) { printf("Wrong\n"); if(guessNumber>number) { printf("Bigger than my number\n"); } else if(guessNumber<number) { printf("Less than my number\n"); } } else { printf("Right"); }} while (number!=guessNumber);system("pause");return 0;}