#include <stdio.h>

int main() {
    int scores[5];
    int max;
    int maxindex;

    printf("정수 5개: ");
        for(int i=0; i<5; i++){
        scanf("%d",&scores[i]);
        printf("%d ", scores[i]);
        }
    max=scores[0];
    maxindex=0;

        for(int i=0; i<5; i++){
        if(scores[i>max]){
            max=scores[i];
            maxindex=i;
        }
        }
    printf("\n최고 점수: %d점\n", max);
    printf("1등: %d번째 학생", maxindex+1);
}

Embed on website

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