비트교육_단기과정
-
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 int cc = 3;// 반 개수 int nc = 3;// 학생 수 String[][] name = new String[cc][nc]; // 이름 int[][][] score; // 몇반,어떤학생의,어떤과목의점수? float[][] avg = new float[cc][nc]; String[] Subject_name = { "국어", "영어", "수학", "총점" }; score = new int[cc][nc][Subject_name.length]; Scanner sc = new Scanner(Sys..
3반 3명의 성적처리 프로그램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 int cc = 3;// 반 개수 int nc = 3;// 학생 수 String[][] name = new String[cc][nc]; // 이름 int[][][] score; // 몇반,어떤학생의,어떤과목의점수? float[][] avg = new float[cc][nc]; String[] Subject_name = { "국어", "영어", "수학", "총점" }; score = new int[cc][nc][Subject_name.length]; Scanner sc = new Scanner(Sys..
2022.06.24 -
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 45 // 한 사람의 성적처리 프로그램 // 입력 : 이름, 국어, 영어, 수학 // 연산 : 총점, 평균 // 출력 : 이름, 국어, 영어, 수학, 총점, 평균 public static void main(String[] args) { String[] name = new String[3]; // 이름 int[][] score; // kor,eng,mat,total float[] avg = new float[name.length]; String[] Subject_name = { "국어", ..
3명 성적처리 프로그램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 45 // 한 사람의 성적처리 프로그램 // 입력 : 이름, 국어, 영어, 수학 // 연산 : 총점, 평균 // 출력 : 이름, 국어, 영어, 수학, 총점, 평균 public static void main(String[] args) { String[] name = new String[3]; // 이름 int[][] score; // kor,eng,mat,total float[] avg = new float[name.length]; String[] Subject_name = { "국어", ..
2022.06.24 -
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 // 한 사람의 성적처리 프로그램 // 입력 : 이름, 국어, 영어, 수학 // 연산 : 총점, 평균 // 출력 : 이름, 국어, 영어, 수학, 총점, 평균 public static void main(String[] args) { String name; // 이름 int[] score; // kor,eng,mat,total float avg = 0; String[] Subject_name = { "국어", "영어", "수학", "총점" }; score = new int[Subject_name.length]; Scanner s..
한 사람 성적처리 프로그램 : 마기창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 // 한 사람의 성적처리 프로그램 // 입력 : 이름, 국어, 영어, 수학 // 연산 : 총점, 평균 // 출력 : 이름, 국어, 영어, 수학, 총점, 평균 public static void main(String[] args) { String name; // 이름 int[] score; // kor,eng,mat,total float avg = 0; String[] Subject_name = { "국어", "영어", "수학", "총점" }; score = new int[Subject_name.length]; Scanner s..
2022.06.23 -
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num; float f; char calculation_opt; String choice = null; do { System.out.print("정수를 입력 : "); num = sc.nextInt(); System...
while문 계산기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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num; float f; char calculation_opt; String choice = null; do { System.out.print("정수를 입력 : "); num = sc.nextInt(); System...
2022.06.23 -
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 public static void main(String[] args) { int i = 1; while (i
while문 구구단 출력1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 public static void main(String[] args) { int i = 1; while (i
2022.06.23 -
과제 1번 과제 2번 과제3 과제4 과제5 과제6 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 public static void main(String[] args) { System.out.println("홀수를 입력해주세요"); Scanner sc = new Scanner(System.in); int num = sc.nextInt(); // 7 for (int i = 0; i = num / 2 * 3 + 1)// 오른쪽 밑 공백 System.out.print(" "); else System.out.print("*"); // *찍기 } } System.out.println();// 줄바꿈 } } Colore..
다중 for문 별 출력과제 1번 과제 2번 과제3 과제4 과제5 과제6 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 public static void main(String[] args) { System.out.println("홀수를 입력해주세요"); Scanner sc = new Scanner(System.in); int num = sc.nextInt(); // 7 for (int i = 0; i = num / 2 * 3 + 1)// 오른쪽 밑 공백 System.out.print(" "); else System.out.print("*"); // *찍기 } } System.out.println();// 줄바꿈 } } Colore..
2022.06.22