C#: Display the pattern like a pyramid with an asterisk
Write a program in C# Sharp to make such a pattern like a pyramid with an asterisk.
The pattern is as follows:
* * * * * * * * * *
Sample Solution:-
C# Sharp Code:
Sample Output:
Display the pattern like pyramid with asterisk: ------------------------------------------------- Input number of rows : 6 * * * * * * * * * * * * * * * * * * * * *
Flowchart:
C# Sharp Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a program in C# Sharp to make such a pattern like a pyramid with numbers increased by 1
Next: Write a C# Sharp program to calculate the factorial of a given number.
What is the difficulty level of this exercise?
Based on 1 votes, average difficulty level of this exercise is Hard
.
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics