Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace TriangleOfDollars
- {
- class Program
- {
- static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- for (int i = 1; i <= n; i++)
- {
- for (int j = 0; j < i; j++)
- {
- Console.Write($"{'$'} ");
- }
- Console.WriteLine();
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment