#include<iostream> using namespace std; int main() { int n; cin>>n; int sum=n; while(sum>=0){ cout<<n<<endl; cin>>n; sum=sum+n; } return 0; }
Complete C++ Course
Doubts
💡-print-series
Saumya1
(Saumya Tripathi )
May 9, 2020, 7:12am
#1
what is wrong in this code