Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Console.WriteLine("Enter a number between 0 and 10")
- int randprob = 5;
- inp = Console.ReadLine();
- if (inp > randprob) {
- Console.WriteLine("You are in the top 50% of guessers");
- break;
- }
- if (inp < randprob) {
- Console.WriteLine("You are in the bottom 50% of guessers");
- break;
- }
- if (inp > 10) {
- Console.WriteLine("Enter a number between 0 and 10");
- break;
- }
- if (inp < 0) {
- Console.WriteLine("Enter a number between 0 and 10");
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement