Wite a program that displays the patterns separately one


Write a program that displays the following patterns separately, one below the other in a TextBox. Use For...Next loops to generate the patterns.

All asterisks should be displayed one at a time by the statement outputTextBox.AppendText("*") (this causes the asterisks to display side by side). The statement output TextBox.AppendText(vbCrLf) can be used to position to the next line, and a statement of the form output TextBox.AppendText(" ") can be used to display spaces for the last two patterns.

There should be no other output statement in the program. Maximize your use of repetition (with nested For...Next statements) and maximize the number of output statements.

Set the TextBox''s property to Lucida Console, its MultiLine property to True and its ScrollBars property to Vertical so that you can scroll through the results.

Solution Preview :

Prepared by a verified Expert
Visual Basic Programming: Wite a program that displays the patterns separately one
Reference No:- TGS0762655

Now Priced at $40 (50% Discount)

Recommended (93%)

Rated (4.5/5)