.length1 Java 기본 배열 Array 학생 점수 관리 프로그램을 만들기 학생 3명의 수학 점수를 처리 첫번째 학생은 70점, 2번째 학생은 90점, 3번째 학생은 77점 int mathScore1 = 70; int mathScore2 = 90; int mathScore3 = 77; // 전체 총점 구하세요. System.out.println( mathScore1 + mathScore2 + mathScore3 ); // 평균 구하세요. System.out.println(( mathScore1 + mathScore2 + mathScore3 ) / 3); // 정수로만 계산하기때문에 소수점이 나오지 .. 2024. 12. 9. 이전 1 다음