A program that will calculate average marks for five students using multi dimensional array in vb

To calculate the average marks for five students using a multi-dimensional array in Visual Basic:

1. Start by creating a new Visual Basic project.
2. Add a multi-dimensional array to store the marks for each student. Declare the array with two dimensions, one for the student and another for the marks.

Here's an example of declaring the multi-dimensional array:
```vb
Dim marks(4, 3) As Integer
```
In this example, `marks` is a multi-dimensional array with 5 rows (representing the 5 students) and 4 columns (representing the 4 marks for each student).

3. Prompt the user to input the marks for each student. Use loops to iterate through the array and read input from the user.

```vb
For i As Integer = 0 To 4
Console.WriteLine("Enter marks for student {0}:", i + 1)
For j As Integer = 0 To 3
Console.Write("Mark {0}: ", j + 1)
marks(i, j) = Convert.ToInt32(Console.ReadLine())
Next
Next
```

4. Calculate the average marks for each student by iterating through the array and summing up the marks, then dividing by the number of marks.

```vb
Dim averages(4) As Double

For i As Integer = 0 To 4
Dim sum As Integer = 0
For j As Integer = 0 To 3
sum += marks(i, j)
Next
averages(i) = sum / 4
Next
```

5. Display the average marks for each student.
```vb
For i As Integer = 0 To 4
Console.WriteLine("Average marks for student {0}: {1}", i + 1, averages(i))
Next
```
6. Run your program and input the marks for each student. The program will calculate the average marks and display them.

That's it! You've successfully created a program in Visual Basic to calculate the average marks for five students using a multi-dimensional array.