#include<stdio.h> int main(void) { int mynumber=38; int count=0,yournumber; for(count=1;count<=5;count++) { printf("Input your number:"); scanf("%d",&yournumber); if(yournumber==mynumber) { printf("OK!you are right! "); break; } else if(yournumber>mynumber) printf("Sorry!you number is bigger than my number! "); else printf("Sorry!you number is smaller than my number! "); } printf("Game is over! "); return 0; }