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
Recommended Answers
Jump to PostWe won't do your homework for you, but if you have hit a snag, post what you have done so far and where you are are stuck and we'll see if we can help you through it.
Jump to PostI can't find your question!
All 5 Replies
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
rproffitt 2,706 https://5calls.org Moderator
wwwalker 49 Newbie Poster
Jussi_1 0 Newbie Poster
toneewa 115 Junior Poster
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.