Question: 7. (Microsoft Visual Basic) Display a triangle Use for-loop to display the following patterns in a list box. * * * * * * *
7. (Microsoft Visual Basic)
Display a triangle
Use for-loop to display the following patterns in a list box. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Hints:
The following codes display a upside-down triangle with dots.
Modify it to display a standing triangle with symbol *.
Private Sub btnDisplay_Click(...) Handles btnDisplay.Click 'Chr(149) is a large dot Dim s As String = "" Dim i As Integer 'xxx fill in the missing codes End Sub
(Microsoft Visual Basic)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
