문제 5명의 성적을 입력받아서 총점과 평균을 출력하는 프로그램을 작성하시오. (평균은 반올림하여 소수 첫째자리까지 출력한다.) 입력 예 90 85 100 66 88 출력 예 총점 : 429 평균 : 85.8 정답 C언어 #include int main() { int num; int three = 0; int five = 0; for (int i = 0; i < 10; i++) { scanf("%d", &num); if (num % 3 == 0) { three++; } if (num % 5 == 0) { five++; } } printf("Multiples of 3 : %d \n", three); printf("Multiples of 5 : %d \n", five); return 0; }