Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Console.WriteLine("Enter:");
- string reply = Console.ReadLine();
- while (reply != "T" && reply != "F")
- {
- Console.WriteLine("Invalid");
- reply = Console.ReadLine();
- }
- if (reply == "T")
- {
- Console.WriteLine("true");
- Console.ReadLine();
- }
- else if (reply == "F")
- {
- Console.WriteLine("true");
- Console.ReadLine();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement