Assumptions:
1. VB.NET is used as a Language program
2. CustomerName, CustomerAddress1, City, State, Zip are the
variable names where the data is stored
3. The Data is already present in the arrays
4 Zip is considering as String
Module CustDetail
Sub Main()
'Initialsing the Array 14, It can take value upto
15
Dim CustomerName(14) As String
Dim CustomerAddress1(14) As String
Dim City(14) As String
Dim State(14) As String
Dim Zip(14) As String
' Assigning the data to the arrays
CustomerName = {"A", "B", "C", "D"}
CustomerAddress1 = {"AA", "BB", "CC", "DD"}
City = {"CA", "CB", "CD"}
State = {"SA", "SB", "SC", "SD"}
Zip = {"1001", "1002", "1003", "1004"}
'Printing the zip code on command line
For Each val As String In Zip
Console.WriteLine(val)
End For
End Sub
End Module
Get Answers For Free
Most questions answered within 1 hours.