Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int i,j,k,n;
- printf("Enter number ::");
- scanf("%d",&n);
- int A[n][n];
- for(i=0;i<n;i++)
- {
- for(j=0;j<n;j++)
- {
- scanf("%d",&A[i][j]);
- }
- }
- for(i=0;i<=n-2;i++)
- {
- for(j=i;j<=i+1;j++)
- {
- for(k=0;k<n;k++)
- {
- printf("%d",A[j][k]);
- }
- printf("\n"); }
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement