Advertisement
Pafnytiu

Оли 1 - 3

Nov 22nd, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include<iostream>
  2. #include<cmath>
  3. using namespace std;
  4. int main()
  5. { int c[100];
  6. int n,a,b; cout<<"n="; cin>>n;
  7. cout<<endl;
  8. cout<<"["; cin>>a; cout<<",";cin>>b; cout<<"]"<<endl;
  9. for (int i=0; i<n;++i)
  10. {cout<<"c["<<i<<"]="; cin>>c[i];
  11. if (a<=c[i]<=b)
  12. c[i]=0;}
  13. for (int i=0; i<n; ++i) cout<<a[i]<<"\t";
  14. system("pause");
  15. return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement