자바 프로그래밍/코딩15 병렬 패리티 비트 public class ex07_1 { public static void main(String[] args) { int[][] bit = {{1, 0, 1, 0, 1, 1, 1, 1}, {1, 0, 0, 0, 0, 0, 1, 1}, {0, 1, 0, 0, 0, 0, 0, 0}, {1, 1, 1, 1, 0, 0, 0, 0}, {1, 0, 1, 1, 1, 0, 0, 1}, {0, 0, 0, 0, 0, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1}, {0, 1, 1, 1, 1, 0, 0, 0}}; for(int width=0; width 2023. 4. 26. 짝수 패리티 비트 import java.util.Scanner; public class Parity { public static void main(String[] args) { Scanner input = new Scanner(System.in); int[] d = new int[8]; for(int i= 0; i 2023. 4. 26. TestAverage 10명의 점수를 받아서 평균을 내는 방법. 2차원 배열을 받는다. public class TestAverage { public static void main(String[] args) { int[][] score = {{87, 96, 70}, {68, 87, 90}, {94, 100, 90}, {100, 81, 82},{83, 65, 85}, {78, 87, 65}, {85, 75, 83},{91, 94, 100}, {76, 72, 84}, {87, 93, 73}}; for(int student=0; student 2023. 4. 24. 이전 1 2 3 4 다음