본문 바로가기

배열2

[Java] 정올기초다지기 배열2-형성평가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 package 배열2.형성평가0A; import java.util.Scanner; public class Main { public static void main(String[] args) { char [][] arr = new char [3][5]; char in = 0; int out =0; Scanner sc = new Scanner(System.in); for(int i=0;i 더보기
[Java] 정올기초다지기 배열2-형성평가08 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 39 40 41 42 43 44 package 배열2.형성평가08; import java.util.Scanner; public class Main { public static void main(String[] args) { int [][] arr = new int [4][2]; int num=0; int sum=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 21 22 23 24 25 26 27 package 배열2.형성평가04; public class Main { public static void main(String[] args) { int arr [][] = { {3,5,9}, {2,11,5}, {8,30,10}, {22,5,1} }; int sum =0; 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 30 package 배열2.형성평가03; import java.util.Scanner; public class Main { public static void main(String[] args) { int [] arr = new int [10]; int num =0; Scanner sc = new Scanner(System.in); for(int i=0;i 더보기
[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-자가진단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] 정올기초다지기 배열2-자가진단01 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.자가진단01; import java.util.Scanner; public class Main { public static void main(String[] args) { String arr [] = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}; int [] out = new int [arr.length]; String in = ""; int cnt =0; .. 더보기