Write a program that asks for five numbers and prints out their harmonic mean. The harmonic mean is "the reciprocal of the arithmetic mean of the reciprocals", or more clearly written as H = n/(1/x_1)...


Write a program that asks for five numbers and prints out their harmonic mean. The harmonic mean is

Extracted text: Write a program that asks for five numbers and prints out their harmonic mean. The harmonic mean is "the reciprocal of the arithmetic mean of the reciprocals", or more clearly written as H = n/(1/x_1) + 1/x_2 + ... + 1/x_n) For example if the input is 1 2 3 4 5, the output must be 2. 18978. The prompt must be "Enter 5 numbers:" Sample output: Enter 5 numbers: 1 2 3 4 5 2.18978

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here