Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.IO.Ports;
- using System.Threading;
- namespace Hello_CS_World
- {
- class Program
- {
- static void Main(string[] args)
- {
- bool _continue = true ;
- string message;
- StringComparer stringComparer = StringComparer.OrdinalIgnoreCase;
- // Display title and prompt line on console
- Console.WriteLine("Hello C# World");
- Console.WriteLine ("Type QUIT to Exit");
- // Loop reading in lines from keyboard until user types "quit"
- while (_continue)
- {
- message = Console.ReadLine();
- if (stringComparer.Equals("quit", message))
- {
- _continue = false;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement