[Java] 정올기초다지기 배열2-형성평가02
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 package 배열2.형성평가02; import java.util.Scanner; public class Main { public static void main(String[] args) { int [] arr = new int [100]; int arr2 [] = {10,9,8,7,6,5,4,3,2,1,0}; int [] cnt = new int [11]; int score = 0; Scanner sc = new Scanner(System.in); for(int i=0;iscore 에 0이라는 숫자를 입력받게되면 cnt한 값들과..
더보기
[Java] 정올기초다지기 배열2-자가진단04
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 package 배열2.자가진단04; public class Main { public static void main(String[] args) { int [][] arr = { {5,8,10,6,4}, {11,20,1,13,2}, {7,9,14,22,3} }; for(int i=0;i
더보기