- Random Number Guessing Random Number Guessing Ct Main No Selection 1 Kenneth On 5 11 22 11 Sandro 1 Mariana 10 In 1 (51.21 KiB) Viewed 16 times
Random number guessing) Random number guessing ) ct main No Selection ) 1 Kenneth on 5/11/22. 11 Sandro 1 Mariana 10 #in
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Random number guessing) Random number guessing ) ct main No Selection ) 1 Kenneth on 5/11/22. 11 Sandro 1 Mariana 10 #in
Random number guessing) Random number guessing ) ct main No Selection ) 1 Kenneth on 5/11/22. 11 Sandro 1 Mariana 10 #include <iostre 11 #include <stdlib.h> 12 using namespace::std; 13 int mainos 16 int n, 15 char chi 15 17 do 11 19 narandx10; 20 cout<<"\nGuess the number: 21 cin>> 22 if(n) EENRA cout<<" /ncongratulations! That is correct guess! Well done! break; else if (mn) couter*intoo high, try again else couteen too low, try again; cout<<"\nwanna quit!: (/) cin>>ch: if(chy break; while(1): 2 return : Guess the number: 1 Too low, try again Wanna quit!?: {y/n) Guess the number: 9 InCongratulations! That is a correct guess! Well done! Program ended