Professional Documents
Culture Documents
Assignment: 2
Submitted To: Sir Asfandyar
Name: Syed Hamza Sherazi
Roll No: 47611
Dated: 17-01-2021
Problem Overview
Scenario: You have been asked to write a VB program which will demonstrate the loops like
For Next, While and For Each Next Loop using Nested Loop concept?
Resources required
Nested Loops
Example:
' Create lists of numbers and letters ' by using array initializers.
Next
Next
1
MsgBox ("")
'Output: 1a 1b 1c 4a 4b 4c 7a 7b 7c
Code:
For i = 0 To letters.Length - 1
Next
Next
MsgBox("")
End Sub
Dim i As Integer = 0
i += 1
End While
index += 1
End While
MsgBox("")
2
End Sub
3
4