grach

Triangle of 55 Stars

Jul 7th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.15 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace TriangleOf55Stars
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             for (int i = 1; i <= 10; i++) //бр. редове
  14.             {
  15.                 for (int j = 0; j < i ; j++)
  16.                 {
  17.                     Console.Write("*");
  18.                 }
  19.                 Console.WriteLine();
  20.             }
  21.         }
  22.     }
  23. }
  24.  
  25. /*
  26. using System;
  27. using System.Collections.Generic;
  28. using System.Linq;
  29. using System.Text;
  30. using System.Threading.Tasks;
  31.  
  32. namespace Nums1to20
  33. {
  34.     class Program
  35.     {
  36.         static void Main(string[] args)
  37.         {
  38.             Console.WriteLine("*");
  39.             Console.WriteLine("**");
  40.             Console.WriteLine("***");
  41.             Console.WriteLine("****");
  42.             Console.WriteLine("*****");
  43.             Console.WriteLine("******");
  44.             Console.WriteLine("*******");
  45.             Console.WriteLine("********");
  46.             Console.WriteLine("*********");
  47.             Console.WriteLine("**********");
  48.         }
  49.     }
  50. }
  51. */
Advertisement
Add Comment
Please, Sign In to add comment