hi ,i have to write a program in c# which will display the output as 12345 1234 123 12 1
54321 5432 543 54 5
for (int i = 1; i <= 5; i++) { for (int j = 5; j >= i; j--) { Console.Write(j); } Console.WriteLine(); for (int k = i; k > 0; k--) { Console.Write(" "); } }
Console.WriteLine("12345"); Console.WriteLine(" 1234"); Console.WriteLine(" 123"); Console.WriteLine(" 12"); Console.WriteLine(" 1");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)