Advertisement
ivanov_ivan

TriangleWith55StarsOn10Rows

Jan 27th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Globalization;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace Test
  9. {
  10.     class TriangleWith55StarsOn10Rows
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             int n = 10;
  15.  
  16.             for(int i = 0; i < n; i++)
  17.             {
  18.                 string stars = new string('*' , 10 - i);
  19.                 Console.WriteLine(stars);
  20.             }
  21.  
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement