정올 java 1641 [정올/JAVA] 164 : 배열2 - 형성평가5 호석이네 학교는 6학년이 네 반이 있는데 각 반의 대표를 세 명씩 선발하여 제기차기 시합을 하였다. 반별로 세 명이 제기를 찬 개수를 입력받아 각 반별로 제.. 공부하시는대에 도움이 됐으면 좋겠습니다. 답안코드 확인해주세요! 더보기 import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner in = new Scanner(System.in); int[][] student = new int[4][3]; for (int i = 0; i < student.length; i++) { System.out.print((i + 1) + "class? "); for (int j = 0; j < student[i].length; j++) { student[i][j] = in.nextInt(); } } for (int i = 0; i < student.length; i++.. 2020. 8. 3. 이전 1 다음