C#: Display the pattern in which the first and a last number of each row will be 1
Write a program in C# Sharp to display such a pattern for n number of rows using a number starting with the number 1. The first and last number of each row will be 1..
The pattern is as follows :
1 121 12321
Visual Presentation:

Sample Solution:
C# Sharp Code:
Sample Output:
Display the pattern in which first and last number of each row will be 1: ---------------------------------------------------------------------------- Input number of rows : 5 1 121 12321 1234321 123454321
Flowchart:

C# Sharp Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a program in C# Sharp to display the first n terms of Fibonacci series.
Next: Write a program in C# Sharp to display the number in reverse order.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.