Programming in C++

C++ Coding Question 3

Write a program that asks you to type a number. After each entry, the application reports the cumulative sum of entries. The program terminates when you enter a zero. C C #include<iostream>using namespace std; int takeinput(){int num;cout<<“nnPlease enter the next number or Press 0 to exit: “; while(!(cin>>num)){cin.clear();while(cin.get()!=’n’)continue; cout<<“Wrong Input..So Please enter a valid input”;cout …

C++ Coding Question 3 Read More »