WIth Example.
If you create a pyramid pattern then you should use For loop in your program.
And please click on this link for Example...
http://answers.mindstick.com/qa/49596/how-to-print-pyramid-pattern-in-c-sharp