Advertisement
Serby__

2.V.12

Sep 23rd, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp1
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.            
  10.             Console.Write("Введите n= ");
  11.             int n = int.Parse(Console.ReadLine());
  12.             for (int i = 1; i <= n; i++)
  13.             {
  14.                 for (int j = i; j >= 1; j--)
  15.                 {
  16.                     Console.Write(j + " ");
  17.                 }
  18.                 Console.WriteLine();
  19.             }
  20.             Console.ReadKey();
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement