Sunday, February 6, 2011

Making right angle triangle using asterisk w/ size

Hi guys! this is my right triangle with size 8. Here is the sample code of the image above. Hope this will help you.
Enjoy! and Happy coding!! :)


Private Sub Command1_Click()
For x = 1 To txtsize
    For y = 1 To x
    Label3.Caption = Label3.Caption & "*"
    Next
    Label3.Caption = Label3.Caption & vbCrLf
Next
End Sub

3 comments:

  1. wow gahi kau bai!!!!

    ReplyDelete
  2. Thanks Mr.jauculan
    your samble triangle code was help full, but its better
    to complete the remaining triangle's code

    by: Jakob

    ReplyDelete