0% found this document useful (0 votes)
163 views7 pages

Number Guessing Game: Mohanish Rajak - 201P043 Chaitanya Parab - 201P022 Danish Shaikh - 201P059

The document describes a number guessing game where: 1) A player guesses a number between 1-100 that is randomly generated. 2) If the guess is incorrect, the player is told whether to guess higher or lower. 3) The game ends when the player correctly guesses the random number.

Uploaded by

Chaitanya Parab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
163 views7 pages

Number Guessing Game: Mohanish Rajak - 201P043 Chaitanya Parab - 201P022 Danish Shaikh - 201P059

The document describes a number guessing game where: 1) A player guesses a number between 1-100 that is randomly generated. 2) If the guess is incorrect, the player is told whether to guess higher or lower. 3) The game ends when the player correctly guesses the random number.

Uploaded by

Chaitanya Parab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

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

You might also like