Expected Pattern:
*
**
***
Code:
str=""
For r = 0 To 2 Step 1
For c=0 to 2 Step 1
If c<=r Then
str=str+"*"
End If
Next
str=str+vbnewline
Next
print str
*
**
***
Code:
str=""
For r = 0 To 2 Step 1
For c=0 to 2 Step 1
If c<=r Then
str=str+"*"
End If
Next
str=str+vbnewline
Next
print str
No comments:
Post a Comment