This program is written in C programming language and it does the following:
#include<stdio.h> int main() { int r,c,a[10][10],b[10][10],i,j; printf("\nEnter the row limit:"); scanf("%d",&r); printf("\nEnter the column limit:"); scanf("%d",&c); printf("\nEnter the values:"); for(i=0;i<r;i++) { for(j=0;j<c;j++) { scanf("%d",&a[i][j]); } } for(i=0;i<r;i++) { for(j=0;j<c;j++) { scanf("%d",&b[i][j]); } } printf("First Array value:\n"); for(i=0;i<r;i++) { for(j=0;j<c;j++) { printf("\t%d",a[i][j]); } printf("\n"); } printf("Second Array value:\n"); for(i=0;i<r;i++) { for(j=0;j<c;j++) { printf("\t%d",b[i][j]); } printf("\n"); } return 0; }To download raw file Click Here
Enter the row limit:2 Enter the column limit:2 Enter the values:1 2 3 4 5 6 7 8 First Array value: 1 2 3 4 Second Array value: 5 6 7 8
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions