#include <stdio.h>

void maxnum(int score[][3],int *max,int *index){
    *index = 0;
    *max = 0;
    for (int i = 0;i < 3;i++) {
        for (int j = 0;j < 3;j++) {
            if (score[i][j] > *max) {
                *max = score[i][j];
                *index = i;
            }
        }
    }
}

int main() {
    int score[3][3] = {{90,80,70},{100,90,95},{60,70,80}};
    int max;
    int index;

    maxnum(score,&max,&index);

    printf("%d",index);
}

Embed on website

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