https://online.codingblocks.com/app/player/43431/content/19258/4693
Simple input problem
@ashutoshu hey ashutosh this link is not accessible to me
so please share your code through ide.codingblocks.com
I am copying the link but that code is not posted
this is my code
#include
using namespace std;
int main() {
int n,sum=0,t;
cout<<“enter the value of n\n”;
cin>>n;
while(n–)
{
cin>>t;
sum+=t;
if(sum<0)
break;
cout<<t<<endl;
}
return 0;
}