here is my code its not passing all test cases can you tell which all testcases i should look for.
thankyou
#include
using namespace std;
int main()
{
int n;
int sum=0;
cin>>n;
while(n<1000 )
{
sum=sum+n;
if(sum+n>n)
{
cout<<n<<" ";
}
else
{
break;
}
cin>>n;
}
return 0;
}