1. Engineering
  2. Computer Science
  3. write a program that prompts the user to enter three...

Question: write a program that prompts the user to enter three...

Question details

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 <iostream> 4 int main)

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution