include
using namespace std;
main()
{
int a[10], n=5, c;
cin >>n;
for(c=0;c {
cin >>a[c];
}
cout <<"the output is :- "<<"\n";
for(c=0;c {
if(a[c]!=42)
{
cout << a[c]<< '\n';
}
else
{
return 0;
}
};
return 0;
}
what the hell is wrong !!!
why it has not been accepted ... it is succesfully running in my compiler