Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Z_2
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Введите число: ");
- int k = int.Parse(Console.ReadLine());
- for (int i = 1; i <= k; i++)
- {
- for (int j = i; j >= 1; j--)
- {
- Console.Write(i + " ");
- }
- Console.WriteLine("");
- }
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement