Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cmath>
- using namespace std;
- int main()
- { int c[100][100];
- int n,m,a,b; cout<<"n="; cin>>n>>endl;
- cout<<"m="; cin>>m; cout<<endl;
- cout<<"["; cin>>a; cout<<",";cin>>b; cout<<"]"<<endl;
- for (int i=0; i<n;++i)
- {for(int j=0; j<m;++j)
- {cout<<"c["<<i<<"]["<<j<<"]="; cin>>c[i][j];
- if (a<=c[i][j]<=b)
- c[i][j]=0;}}
- for (int i=0; i<n; ++i) cout<<a[i][j]<<"\t";
- system("pause");
- return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement