본문 바로가기

배열기초다지기

[Java] 정올기초다지기 배열2-형성평가07 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.형성평가07; import java.util.Scanner; public class Main { public static void main(String[] args) { int [][] arr = new int [2][3]; int [][] arr2 = new int [2][3]; int num = 0; Scanner sc = new Scanner(System.in); System.out.println("first array"); for(int i=0;i 더보기
[Java] 정올기초다지기 배열2-형성평가05 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 package 배열2.형성평가05; import java.util.Scanner; public class Main { public static void main(String[] args) { int [][] arr = new int [4][3]; int [] score = new int [4]; int num=0; Scanner sc = new Scanner(System.in); for(int i=0;i 더보기
[Java] 정올기초다지기 배열2-자가진단06 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 37 38 package 배열2.자가진단06; import java.util.Scanner; public class Main { public static void main(String[] args) { int [][] arr = new int [5][4]; int num =0; int sum =0; int cnt =0; Scanner sc = new Scanner(System.in); for(int i=0;i 더보기
[Java] 정올기초다지기 배열2-자가진단05 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 package 배열2.자가진단05; import java.util.Scanner; public class Main { public static void main(String[] args) { int [][] arr = new int [2][4]; int [][] arr2 = new int [2][4]; int num = 0; Scanner sc = new Scanner(System.in); for(int i=0;i 더보기
[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 더보기
[Java] 정올기초다지기 배열2-자가진단03 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 package 배열2.자가진단03; import java.util.Scanner; public class Main { public static void main(String[] args) { int [] arr = new int [100]; int num = 0; Scanner sc = new Scanner(System.in); num = sc.nextInt(); arr[0] = 100; arr[1] = num; for(int i=2;i 더보기
[JAVA] 정올기초다지기 배열1-형성평가A 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 package 배열1.형성평가0A; import java.util.Scanner; public class Main { public static void main(String[] args) { int [] arr = new int [20]; int num =0; int score =0; int tmp =0; Scanner sc = new Scanner(System.in); num = sc.nextInt(); for(int i =0;i 더보기
[JAVA] 정올기초다지기 배열1-형성평가09 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 package 배열1.형성평가09; import java.util.Scanner; public class Main { public static void main(String[] args) { int [] arr = new int [100]; int num =0; Scanner sc = new Scanner(System.in); for(int i=0;i 더보기