The code for a Number Guessing Game by me in C.
So, this game is single and double player.
Single Player-
- Guess a no. from 1 to 100
- If the supposed no. is greater than the actual no. it will incidate higher
- If the supposed no. is lesser than the actual no. it will incidate lower
- Until you guess it right and will show the no. of attempts you took to get it right
- Can play again to reduce those no. of attempts.
Double Player-
- Each player gets unlike no. to guesss which is form 1 to 100
- One with least no. of attempts WINS.
There is a .c-file attached where you will find an error free code.
You can run it on any C compiler and start playing. Enjoy!