1. Course
  2. Arrays
  3. Two-dimensional array

Two-dimensional array


Last updated: 8/23/2020 Difficulty: Intermediate

Write a program in C# that asks the user for the grades of 10 students divided into 2 groups of 5 students in each. You must store them in a two-dimensional array and show the arithmetic average of each group of students.

Input

4
5
3 
6 
3 
7 
4 
8 
3 
5 
6 
2 
6 
7 
4 
6 
7 
4 
2 
3

Output

Average for group 1 is 4,8
Average for group 2 is 4,7

Solution

Arrays

7 / 11

Android App


Practice C# anywhere with the free app for Android devices.

Android App

Exercises C# by difficulty


Learn C# at your own pace, the exercises are ordered by difficulty.

Advertising