PLEASE USE C++

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

PLEASE USE C++

Post by answerhappygod »

PLEASE USE C++
Please Use C 1
Please Use C 1 (35.73 KiB) Viewed 21 times
CHALLENGE 4.2.2: While loops. ACTIVITY 407946.2092060.qx3zqy7 Jump to level 1 Write a while loop that sums all doubles read from input until the double 1.0 is read. Double 1.0 should not be included in the sum. Ex: If input is 22.0 19.5-10.5 5.5 1.0, then the output is: 36.5 1 #include <iostream> 2 #include <iomanip> 3 using namespace std; 4 5 int main() { 6 double userInput; 7 double doubleSum; doubleSum = 0.0; cin >> userInput; cout << fixed << setprecision (1) << doubleSum << endl; return 0; 2 3 8 9 10 11 12 while() 13 { 14 15 16 17 18 19 Check 1 Next level DD- Feedback?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply