Relative Content

Tag Archive for c++for-loopiterationmean

C++ For Loop is not working correctly and cant find the bug

i have been working on a c++ program that calculates the arithmetic, geometric and harmonic means.
the first instance of the calculation gives the correct figures for the arithmetic, geometric and harmonic means when you input 1 and 365 as the inputs
which gives 183 , 19.104, 1.994 respectively.