Advertisement
Andreschka

Practic 3.5

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