I am learning Fortran and I am able to write code for 3 number means. Now For computing it for set of numbers is not getting in my mind. I am not able to do it.(adsbygoogle = window.adsbygoogle || []).push({});

Writing a single Fortran program that calculates the arithmetic mean, rms (root-mean-square) average, geometric mean, and harmonic mean for a set of numbers. Running the code for the following four sets of numbers.

(a) 4, 4, 4, 4, 4, 4, 4

(b) 4, 3, 4, 5, 4, 3, 5

(c) 4, 1, 4, 7, 4, 1, 7

(d) 1, 2, 3, 4, 5, 6, 7

Thanks for the help.

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# FORTRAN PROGRAM FOR MEANS (Beginner)

**Physics Forums | Science Articles, Homework Help, Discussion**