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