Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int main()
- {
- int i,j,M[50][50],x,z,n;
- n=7;
- z=n;
- for(i=x;i<=n;i++)
- {for(j=x;j<=n;j++)
- {
- M[i][j]=x;
- }
- x++;
- n--;
- }
- for(i=1;i<=z;i++)
- {for(j=1;j<=z;j++)
- cout<<M[i][j]<<" ";
- cout<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement