Skip to main content
added byte count in header
Source Link
Downgoat
  • 29.2k
  • 6
  • 85
  • 157

C#, 1412 bytes

using System; namespace Ascii_Ladders { class Program { static void Main(string[] args) { int n = 0; int m = 0; Console.Write("Please enter Height: "); n = int.Parse(Console.ReadLine()); Console.Write("Please Enter Width: "); m = int.Parse(Console.ReadLine()); Console.Write("o"); for (int i = 0; i < m; i++) { Console.Write("-"); } Console.WriteLine("o"); for (int k = 0; k < n; k++) { for (int i = 0; i < m; i++) { Console.Write("|"); for (int j = 0; j < m; j++) { Console.Write(" "); } Console.WriteLine("|"); } if (k != n - 1) { Console.Write("+"); for (int i = 0; i < m; i++) { Console.Write("-"); } Console.WriteLine("+"); } } Console.Write("o"); for (int i = 0; i < m; i++) { Console.Write("-"); } Console.WriteLine("o"); Console.ReadKey(); } } } enter code here 

C#

using System; namespace Ascii_Ladders { class Program { static void Main(string[] args) { int n = 0; int m = 0; Console.Write("Please enter Height: "); n = int.Parse(Console.ReadLine()); Console.Write("Please Enter Width: "); m = int.Parse(Console.ReadLine()); Console.Write("o"); for (int i = 0; i < m; i++) { Console.Write("-"); } Console.WriteLine("o"); for (int k = 0; k < n; k++) { for (int i = 0; i < m; i++) { Console.Write("|"); for (int j = 0; j < m; j++) { Console.Write(" "); } Console.WriteLine("|"); } if (k != n - 1) { Console.Write("+"); for (int i = 0; i < m; i++) { Console.Write("-"); } Console.WriteLine("+"); } } Console.Write("o"); for (int i = 0; i < m; i++) { Console.Write("-"); } Console.WriteLine("o"); Console.ReadKey(); } } } enter code here 

C#, 1412 bytes

using System; namespace Ascii_Ladders { class Program { static void Main(string[] args) { int n = 0; int m = 0; Console.Write("Please enter Height: "); n = int.Parse(Console.ReadLine()); Console.Write("Please Enter Width: "); m = int.Parse(Console.ReadLine()); Console.Write("o"); for (int i = 0; i < m; i++) { Console.Write("-"); } Console.WriteLine("o"); for (int k = 0; k < n; k++) { for (int i = 0; i < m; i++) { Console.Write("|"); for (int j = 0; j < m; j++) { Console.Write(" "); } Console.WriteLine("|"); } if (k != n - 1) { Console.Write("+"); for (int i = 0; i < m; i++) { Console.Write("-"); } Console.WriteLine("+"); } } Console.Write("o"); for (int i = 0; i < m; i++) { Console.Write("-"); } Console.WriteLine("o"); Console.ReadKey(); } } } 
Source Link

C#

... My first CodeGolf attempt, Not likely to win but it works so here we go:

using System; namespace Ascii_Ladders { class Program { static void Main(string[] args) { int n = 0; int m = 0; Console.Write("Please enter Height: "); n = int.Parse(Console.ReadLine()); Console.Write("Please Enter Width: "); m = int.Parse(Console.ReadLine()); Console.Write("o"); for (int i = 0; i < m; i++) { Console.Write("-"); } Console.WriteLine("o"); for (int k = 0; k < n; k++) { for (int i = 0; i < m; i++) { Console.Write("|"); for (int j = 0; j < m; j++) { Console.Write(" "); } Console.WriteLine("|"); } if (k != n - 1) { Console.Write("+"); for (int i = 0; i < m; i++) { Console.Write("-"); } Console.WriteLine("+"); } } Console.Write("o"); for (int i = 0; i < m; i++) { Console.Write("-"); } Console.WriteLine("o"); Console.ReadKey(); } } } enter code here