nvnnaidenov

TriangleOfStars - Chapter 1.0

Feb 9th, 2022
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. //Task 004, Chapter 1.0
  2. using System;
  3.  
  4. public class TriangleOfStars
  5. {
  6.     static void Main()
  7.     {
  8.         for(int i = 1; i <= 10; i++)
  9.         {
  10.             for(int j = 1; j <= i; j++)
  11.             {
  12.                 Console.Write("*");
  13.             }
  14.  
  15.             Console.WriteLine();
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment