Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Test
- {
- static class Program
- {
- static void Main(String[] args)
- {
- Console.Write("Enter number of lines: ");
- int input = Convert.ToInt32(Console.ReadLine());
- int j = input;
- for (int i = 0; i < input; i++)
- {
- for (int x = 0; x < j; x++)
- {
- Console.Write("{0} ", x + 1);
- }
- Console.WriteLine();
- j--;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment