Advertisement
Guest User

Untitled

a guest
Aug 13th, 2017
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. using System;
  2. namespace _02SoftuniCoffeeOrders
  3. {
  4.     class SoftuniCoffeeOrders
  5.     {
  6.         static void Main(string[] args)
  7.         {
  8.             int n = int.Parse(Console.ReadLine());
  9.             int row = 1 + n;
  10.             int col = 1 + n;
  11.             for (int row = 1; row <= n; row++)
  12.             {
  13.                 Console.WriteLine("$");
  14.                 for (int col = 1; col < row; col++)
  15.                 {
  16.                     Console.WriteLine(" $");
  17.                 }
  18.                 Console.WriteLine();
  19.             }
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement