#include <stdio.h>
int main(void)
{
int score[3][3];
int sum[3];
for (int i = 0; i < 3; i++)
{
printf("%d번 학생 점수: ", i+1);
for (int j = 0; j<3; j++)
{
scanf("%d", &score[i][j]);
sum[i]+=score[i][j];
}
printf("\n");
}
for (int i = 0; i<3; i++)
printf("\n%d번 학생: %d %d %d\n총점: %d", i+1, score[i][0], score[i][1], score[i][2], sum[i]);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: