Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- string exitString = "exit";
- string inputString = "";
- bool isExit = false;
- while (!isExit)
- {
- Console.WriteLine("\nPlease input a word : ");
- inputString = Console.ReadLine();
- if (inputString.Equals(exitString))
- isExit = true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment