Advertisement
bacco

using System; namespace cup { class Program {

May 16th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. using System;
  2.  
  3. namespace cup
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int integer = int.Parse(Console.ReadLine());
  10.  
  11.             for (int i = 1; i <= integer; i++)
  12.             {
  13.                 for (int s = 1; s <= i; s++)
  14.                 {
  15.                     Console.Write(i + " ");
  16.                 }
  17.                Console.WriteLine();
  18.             }
  19.         }
  20.     }
  21. }
  22.  
  23.    //  5    1
  24.    //       2 2
  25.    //       3 3 3
  26.    //       4 4 4 4
  27.    //       5 5 5 5 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement