NUMBER GUESSING GAME
MOHANISH RAJAK – 201P043
CHAITANYA PARAB – 201P022
DANISH SHAIKH – 201P059
ACKNOWLEDGEMENT
We would like to express our special thanks of gratitude to our ‘Prof
Mohd. Ashfaque’ who gave us the golden opportunity to do this
wonderful project on the topic ‘Number Guessing Game’, which also
helped us in doing a lot of Research and we came to know about so
many new things we are really thankful to him.
INTRODUCTION :
• The number guessing game is based on a concept where player guesses a number
between a range. If player guesses the exact number then player wins else player
looses the game. Since this game provides limited attempts, so, player must guess
the number with the limited attempts, else will lose the game. If the entered
number is less than or greater than the required number, then player gets the
message (hint) to proceed further either in up or down range.
ALGORITHM :
1) Start
2) Print enter your guess(1-100)
3) Input n
4) If n<100 || n>100Then print invalid number
5) Else if n>random number
Then print "incorrect! try a lower number
6) Else if n<randomnumber
Then print "incorrect! try a higher number
7) Else n=randomnumber
Then print "your guess is correct“
8) Print n
9) End
CODE :
OUTPUT :
Thank You