Home /
Expert Answers /
Computer Science /
write-a-segment-of-code-to-accept-2-integer-numbers-and-1-double-number-from-input-stream-keyboard-pa700
(Solved): Write a segment of code to accept 2 integer numbers and 1 double number from input stream (keyboard ...
Write a segment of code to accept 2 integer numbers and 1 double number from input stream (keyboard) and calculate the total of three numbers as the value of the Sum and display the total. Declare all three numbers and Sum (15 points)
Solution: int num1, num2; double num3; double Sum; cout << "Please Enter Three Numbers: " << endl; cin >> num1 >> num2 >> num3; Sum = num1 + num2 + num3; cout << "The Total is: " << Sum <<