forked from singhalansh/yt-channel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharray2.c
More file actions
28 lines (25 loc) · 689 Bytes
/
array2.c
File metadata and controls
28 lines (25 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include<stdio.h>
int main()
{
// int array1[7];
// for(int i = 0; i<7; i++){
// printf("enter the value of %d element of array:\n",i);
// scanf("%d",&array1[i]);
// }
// for(int i = 0; i<7; i++){
// printf("the %d element of array is %d\n",i,array1[i]);
// }
int a[4][3];
for(int i=0;i<4;i++){
for(int j=0; j<3;j++){
printf("enter the value of %d %d element of array:\n",i,j);
scanf("%d",&a[i][j]);
}
}
for(int i = 0; i<4;i++){
for(int j=0; j<3;j++){
printf("the %d %d element of array is %d\n",i,j,a[i][j]);
}
}
return 0;
}