Sunday, February 13, 2011

Assigment # 1 Loops in C#

Create a program to create pyramid of strikes "*" by taking input of number of rows in the pyramid
2 rows pyramid looks like

 *   
**

3 rows pyramid looks like

     *
   ***
  ****

Create similar program by using

For loop
While Loop
Do While loop

No comments:

Post a Comment