You are viewing a single comment's thread. Return to all comments →
int main() { int a[10],s,i; cout<<"\n enter three numbers from 1 to 1000"; for(i=0;i<3;i++) { cin<
} for(i=0;i<n;i++) { if(1<=a[i]<=1000) { s=s+a[i]; } }
cout<
Seems like cookies are disabled on this browser, please enable them to open this website
Input and Output
You are viewing a single comment's thread. Return to all comments →
include
include
include
int main() { int a[10],s,i; cout<<"\n enter three numbers from 1 to 1000"; for(i=0;i<3;i++) { cin<
cout<