Ticker

6/recent/ticker-posts

2D Array in C programming

 

2D Array in C programming
2D Array in C programming

#include<stdio.h> #include<conio.h> int main() { int arr[2][2],i,j; for(i=0;i<2;i++) { for(j=0;j<2;j++) { printf("Enter the elements: "); scanf("%d",&arr[i][j]); } } for(i=0;i<2;i++) { for(j=0;j<2;j++) { printf("%d\t",arr[i] [j]); } printf("\n"); } return 0; }

Post a Comment

0 Comments