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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!