Advertisement
Pafnytiu

Оли 1 -3.1

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