average

Complete the method average, which takes in a two-dimensional array and returns the average of the elements. Hint: For some students, integer division may work against you!

Input:

1 1

Result:1.0

Input:

1 1
1 1

Result:1.0

Input:

1 1
3 1

Result: 1.50

Type your solution        
Skills Practiced:
3.C
3.E
4.A
4.B
Copyright © StudyCS 2024 All rights reserved.