#include <stdio.h>

int main()
{
    int a[2][3],num,r,c;

    printf("enter the elements - \n");

    for(int i=0; i<2; i++)
    {
        for(int j=0; j<3; j++)
        {
            scanf("%d", &a[i][j]);
        }
    }

    printf("Original array - \n");
    for(int i=0; i<2; i++)
    {
        for(int j=0; j<3; j++)
        {
            printf("%d\t", a[i][j]);
        }

        printf("\n\n");
    }

    printf("Enter the number to be add - \n");
    scanf("%d", &num);

    printf("Enter row and column no. of position - \n");
    scanf("%d%d", &r,&c);

    a[r][c] = num;

    for(int i=0; i<2; i++)
    {
        for(int j=0; j<3; j++)
        {
            printf("%d\t", a[i][j]);
        }

        printf("\n\n");
    }
    return 0;
}