ellapt

2.9.IsoscelesTriangle

Dec 18th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. using System;
  2. using System.Text;
  3.  
  4. class IsoscelesTriangle
  5. {
  6. static void Main()
  7. {
  8. Console.OutputEncoding = Encoding.UTF8;
  9. string copyRight="\u00A9";
  10. Console.WriteLine("Variant 1: Filled isosceles triangle");
  11. Console.WriteLine();
  12. Console.WriteLine("{0,5}", copyRight);
  13. Console.WriteLine("{0,4}{0}{0}", copyRight);
  14. Console.WriteLine("{0,3}{0}{0}{0}{0}", copyRight);
  15. Console.WriteLine();
  16.  
  17. Console.WriteLine("Variant 2: Empty isosceles triangle");
  18. Console.WriteLine("{0,5}", copyRight);
  19. Console.WriteLine("{0,4}{0,2}", copyRight);
  20. Console.WriteLine("{0,3}{0,4}", copyRight);
  21. Console.WriteLine("{0,2}{0,2}{0,2}{0,2}", copyRight);
  22. Console.WriteLine();
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment