Expand|Select|Wrap|Line Numbers
- *
- ***
- *****
- *******
- *********
- *******
- *****
- ***
- *
I am having trouble doing this problem using "For ... Next" Repetition Statement.
I can use Console.WriteLine("*****") but I need to use repetition statements inorder to minimize the number of output statements.
My updated code is this:
Expand|Select|Wrap|Line Numbers
- Module ForCounter
- Sub Main()
- Dim i As Integer
- Dim j As Integer
- For i = 0 To 3
- Console.Write("*")
- Next
- For j = 0 To 5
- Console.WriteLine("*")
- Next
- End Sub ' Main
- End Module
*****
*
*
*
*
*
Clearly not a diamond
Please HELP!!!