Two-Dimensional Array C Programming /*Below program showing Two Dimensional array...*/ #include #include void main() { int a[2][2],r,c; clrscr(); printf("\n\tTwo Dimensional Array\t\n"); printf("\n\t======================\t\n"); printf("\n\tEnter the Rows and Columns:\t\n"); for(r=0;r<2;r++) { for(c=0;c<2;c++) { scanf("%d",&a[r][c]); } } printf("\n\tAfter the Inputting Array:\t\n"); for(r=0;r<2;r++) { for(c=0;c<2;c++) { printf("\t %d \t",a[r][c]); } printf("\n"); } getch(); } Output is as : Read more » Tweet Share Share Share Share Related Post
ConversionConversion EmoticonEmoticon