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