Question: Using if conditions in c programming Write a program in c programming to play a guessing game. In the game, the user has 5 attempts

Using "if conditions" in c programming
Write a program in c programming to play a guessing game. In the game, the user has 5 attempts The correct guess number is 5 For the first attempt, if the user enters the correct guess number that is "5", tell him that he has won For the first attempt, If the user enters any number which is not 5, tell the user it is wrong and he should try again for he has 4 more attempts If the user gets the 2nd attempt wrong, tell him he has 3 more attempts Do same for 3rd , 4th and 5th attempt when the user exceeds the 5th attempt, tell him that he has lost. No attempts again
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
