The arithmetic mean of two numbers is the result of dividing their sum by 2. The geometric mean of two numbers is the square root of their product. The harmonic mean of two numbers is the arithmetic mean of their reciprocals. Write a C++ program that asks the user for two real numbers as inputs and displays these three means. (hint: you will need to include cmath library)
Mohammed_98 0 Newbie Poster
Reverend Jim 4,966 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
rproffitt 2,662 "Nothing to see here." Moderator
wwwalker 49 Newbie Poster
Jussi_1 0 Newbie Poster
toneewa 81 Junior Poster in Training
rproffitt commented: Are you OK Joshua? I haven't seen you active for 5 years. +16
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.