Write a program that displays an arbitrary sized grid in the console using a character that user picks from a list. The program should not exit until the user presses Esc.
Accepted file types:
Press ESC to exit, any other key to continue.Grid rows:5Grid columns:5Character options1) @2) X3) 0Your choice:2
XXXXXXXXXXXXXXXXXXXXXXXXX
Console.ReadLine()
Console.Write("Enter number: ");int num = int.Parse(Console.ReadLine());Console.Write(Environment.NewLine);Console.WriteLine("You entered: {0}", num);
Console.Write()
Console.WriteLine()
Environment.NewLine
// Outer loopfor(int i=0; i{// Inner loopfor(int j=0; j{// Other stuff here}}
ConsoleKey inpt = Console.ReadKey().Key;if(inpt == ConsoleKey.Escape){// Set your bool to true here}else{// Get user input, initialize your class and call the draw grid method here}
ConsoleKey
Console.ReadKey().Key
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here