#include <stdio.h>

int main()
{
    int a[3][3] = {{4, 2, 3}, {2, 4, 6}, {3, 4, 6}};

    int i, j;
    int max = a[0][0];
    int min = a[0][0];

    for (i = 0; i < 3; i++)
    {
        for (j = 0; j < 3; j++)
        {
            if (a[i][j] > max)
            {
                max = a[i][j];
            }
            else if (a[i][j] < min)
            {
                min = a[i][j];
            }
        }
    }

    printf("Maximum Number in the Matrix is: %d\n", max);
    printf("Minimum Number in the Matrix is: %d\n", min);
    return 0;
}

Embed on website

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