/******************************************************/ /* Introduction to Programming */ /* By Dr. ANTF */ /* www.antf.net */ /* Copyright 2015 */ /* */ /* C# 311 - Problem 10: Password Character */ /******************************************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DOS { class Program { static void Main(string[] args) { char x = 'a'; Console.Write("Please enter your passwrod: "); while (x != '~') { x = Console.ReadKey(true).KeyChar; Console.Write("*"); } Console.WriteLine("\n\nPress any key to quit"); Console.ReadKey(); } } }