[Solved] How can I draw a diagonal line with Console.SetCursorPosition c#?
You need to set a CursorPosition to a given location, then need to draw a horizontal line. Like, public static void LineHorizontale(int x, int y, int length) { //This will set your cursor position on x and y Console.SetCursorPosition(x, y); //This will draw ‘-‘ n times here n is length Console.WriteLine(new String(‘-‘, length)); } if … Read more