23.01.05(제어 흐름 이해하기)
ctrl + alt + 아래방향키 ==> 복사 😀제어문 * 1. 분기문(조건문) * - if문, if~else문, 다중 if~else문, switch~case문 // if, if~else문 중요 * 2. 반복문 * - while문, do~while문, for문 // while, for 중요 * 3. 기타(보조제어문) * - break, continue 명령어 1. 조건문 - if - if else - if, else if, else 1. 키보드 입력 준비 Scanner sc = new Scanner(System.int); 2. 키보드로 점수 입력 받기 System.out.print("") int num = sc.nextInt(); 3. 조건문 만들기 4. 스캐너 종료 cs.close(); 😀 .equal..
2023. 1. 6.