Sun Jun 03, 2012 7:24 am
I NEED THIS PROGRAM. CAN SOMEONE HELP ME????
The harmonic mean of two numbers is given by:
The arithmetic mean of two numbers is given by:
Write a program that inputs two numbers (as floating point) and writes out both the usual
average (the arithmetic mean) and the harmonic mean like this:
Enter X:
12
Enter Y:
16
Arithmetic mean: 14.0
Harmonic mean: 13.714285714285715
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.