By Anshika Negi
The project is an interactive game based on a guessing game , 5 up or 5 down where the user can guess if the number generated will be less or more than 5.
The packet generates a random number between 1-10. We have to keep guess if the number generated by the program will be less than or more than 5.
User gets choices between lesser than or greater than 5 and according to that the program will continue. To generate random numbers we use function rand.
-1688233037-2044.png)
If the user's guess is correct then the user wins the game or less they have to try again.
-1688233544-2044.png)
-1688233610-2044.png)
By chance the generated number will be equals to 5 then the user gets another try.
-1688233457-2044.png)
Submitted by Anshika Negi (anshikaaa)
Download packets of source code on Coders Packet
Comments