include
using namespace std;
int main()
{
int i,n,a[20];
cout<<"How Many Numbers Do u want to use as input :- ";
cin>>n;cout< for( i=0;i {
cin>>a[i];
}
cout<<"\nHere your output:- ";
for( i=0;i {
if(a[i]!=42)
cout<<" " < else if(a[i]==42)
break;
}
}
i hv written the prgrm using array 1st u hv to give all the no that u want to use as input & then it gives u the output as mentioned in the qstn, so where am i wrng??