Question: #include using namespace std; int main() { float n,sum=0; cout > n) { if(n==0) break; else sum+=n; cout Write a complete program that sums the
#include using namespace std; int main() { float n,sum=0; cout > n) { if(n==0) break; else sum+=n; cout
Write a complete program that sums the user's inputs. If the user enters zero it displays the sum. you must use a while loop. sample run: Enter a number to stop enter 0: 8.9 Enter a number to stop enter 0: 500 Enter a number to stop enter 0:1.4 Enter a number to stop enter 0:0 The sum is 510.3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
