Home > Back-end > Do C simple number guessing game for the first time
Do C simple number guessing game for the first time
Time:09-16
#include Int main () { Int mynumber=38; Int yournumber;
Printf (" Input your number: "); The scanf (" % d ", & amp; Yournumber); If (yournumber==mynumber) Printf (" OK! You are right! \n"); The else If (yournumber> Mynumber) Printf (" Sorry! Your number is bigger than my number! \n"); The else Printf (" Sorry! Your number is smaller than my number! \ n!" ); return 0; }
CodePudding user response:
Can do a upgrade,
Only the right to end the program, or always guess,