Triangle of asterisks


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.

Request for Solution File

Ask an Expert for Answer!!
Visual Basic Programming: Triangle of asterisks
Reference No:- TGS0686513

Expected delivery within 24 Hours