Here in this code, I want to generate a random number to be guessed by a user. When the input number entered by user is greater than the random number, it must show "Enter lower number", but for the opposite, "Enter higher number", however, if equal, the loop will stop.
But, somehow I did not get to the destination that I wanted and I don't know why. Please help me explain. Thank you.Code is wrong but no idea why(rand+srand+conditional)-screenshot-2023-03-05-172228-jpgCode is wrong but no idea why(rand+srand+conditional)-screenshot-2023-03-05-172452-jpg