fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. MakeAxis(3);
  8. }
  9.  
  10. public static void MakeAxis(int lineLengths)
  11. {
  12. for(int i = 0; i < lineLengths - 1; i++)
  13. Console.WriteLine("|".PadLeft(lineLengths, ' '));
  14. Console.WriteLine("|".PadLeft(lineLengths, ' ') + new String('_', lineLengths<<1));
  15. for(int i = lineLengths; i > 0; i--)
  16. Console.WriteLine("/".PadLeft(i, ' '));
  17. }
  18. }
Success #stdin #stdout 0.02s 24136KB
stdin
Standard input is empty
stdout
  |
  |
  |______
  /
 /
/