psotirov

Isosceles Triangle

Nov 9th, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. using System;
  2.  
  3. class IsoscelesTriangle
  4. {
  5.     static void Main()
  6.     {
  7.         char sign ='\u00A9';
  8.         int lines = 3;
  9.         for (int i = 0; i < lines; i++)
  10.         {
  11.             string line = new String(sign, i*2 + 1).PadLeft(lines+i+1);
  12.             Console.WriteLine(line);
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment