Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that prompts the user to enter three floating point numbers. Store those numbers in 3 float variables. Then, print out the sum
Write a program that prompts the user to enter three floating point numbers. Store those numbers in 3 float variables. Then, print out the sum of the three numbers. You can print out the sum by adding (using +) the three loat variables, directly in the cout statement. Here are some sample runs of the program (with user input in bold italics Sample run 1: Enter three floating point numbers: 4.3 5.4 2.1 Sum: 11.8 Sample run 2: Enter three floating point numbers 12.3 11.9 1.43 Sum: 25.63 YOUR ANSWER We recommend you take a quick tour of our editor before you proceed. The timer will pause up to 90 seconds for the tour Start tour For help on how to read input and write output in C++,click here Draft saved 04:27 pm Original Code C++ 1 #include 4 int main)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started