#include <stdio.h>
int main()
{
int arr[3][2];
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 2; j++)
{
printf("Enter the value of arr[%d][%d]\n", i, j);
scanf("%d", &arr[i][j]);
}
}
// for (int i = 0; i < 3; i++)
// {
// for (int j = 0; j < 2; j++)
// {
// printf("The value of arr[%d][%d] is %d\n", i, j, arr[i][j]);
// }
// }
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 2; j++)
{
printf("%d ", arr[i][j]);
}
printf("\n");
}
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: