#include <stdio.h>
int main() {
int sum = 0; //합계를 저장할 변수
int avg = 0; //평균을 저장할 변수
int i;
for(i=1;i<=10;i++){
int a;
scanf("%d", &a);
sum = sum + a;
}
avg = sum/10;
if(avg >= 80){
printf("우수\n");
}else if(avg >= 60){
printf("평균\n");
}else{
printf("노력 필요\n");
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: