#include <stdio.h>
#define rows 10
#define cols 10
int main() {
    int a[rows][cols],i,j,m,n;
    printf("enter the order of matrix(m,n)\n");
    scanf("%d%d",&m,&n);
    printf("enter the elements of array\n");
    for(i=0;i<m;i++)
    {
        for(j=0;j<n;j++)
        {
            scanf("%d",&a[i][j]);
        }
    }
    printf("elements of 2d array are:\n");
    for(i=m;i<=1;i--)
    {
        for(j=n;j<=1;j--)
    printf("%4d",a[i][j]);
    printf("\n");  
    }
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: