Advertisement
ret_0

c# egor prac 4 num 4 var 11

Oct 15th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace egor_prac4_z4_var11
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             Console.Write("Enter N = ");
  13.             int n = int.Parse(Console.ReadLine());
  14.             for (int i = 1; i <= n; i++)
  15.             {
  16.                 for (int j = 1; j <= i; j++)
  17.                 {
  18.                     Console.Write(j + " ");
  19.                 }
  20.                 Console.Write("\n");
  21.             }
  22.             Console.ReadKey();
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement