java 세로형 성적 그래프 1+1은? 2013. 7. 25. 16:29 public static void main(String[] args) { int score1 = 100, score2 = 80, score3 = 90, score4 = 60, score5 = 50; int[] ns = new int[] { score1 / 10, score2 / 10, score3 / 10, score4 / 10, score5 / 10 }; // ns.length = 5 String[][] list = new String[5][10]; // list.length = 5 for (int i = 0; i < list.length; i++) { for (int j = 0; j < ns[i]; j++) { list[i][j] = " * "; } } for (int j = 9; j >= 0; j--) { for (int i = 0; i < 5; i++) { if (list[i][j] != null) System.out.print(list[i][j]); else System.out.print(" "); } System.out.println(); } System.out.println("=================================="); System.out.println("홍길동 아무게 하하하 호호호 이순신"); // 10점당 * 1개 } * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ================================== 아이유 설리 임윤아 전지현 임수정