*
**
***
****
*****
**
***
****
*****
Algorithm
STEP 1. nß0,cß0,kß0
STEP 2. print “Enter number of rows”
STEP 3. read n
STEP 4. Repeat for c=1,2,3,4…n
Begin
Repeat for k=1, 2, 3…c
Begin
print “*”
End
print “\n”
End
No comments:
Post a Comment