hs

    2022/05/09 1

    +5 제어문(선택문, 반복문)

    선택문_1 switch-case public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("첫 번째 정수: "); int num1 = sc.nextInt(); System.out.println("두 번째 정수: "); int num2 = sc.nextInt(); System.out.println("연산자 입력(+, -, *, /)"); String op = sc.next(); /* * nextInt(): int * nextDouble(): double * next(): String * nextBoolean(): boolean */ switch(op) { case "+": System.out..

    수업 2022.05.09
    1
    더보기
    • 분류 전체보기 (176)
      • 수업 (35)
      • Java (73)
        • 생활코딩 (6)
        • 패스트캠퍼스 (18)
        • 정석 (11)
        • 백준 (7)
      • HTML (2)
      • CSS (1)
      • JavaScript (1)
      • JSP (7)
      • Bootstrap (1)
      • DB (15)
        • Oracle (15)
      • Python (5)
      • output (18)
        • Python (0)
        • JSP (18)
        • SPRING (0)
        • PROJECT (0)
      • ERROR (10)
      • Book (0)
      • Writing (1)
      • Diary (7)
        • TIL (7)

    Archives

    Calendar

    «   2022/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

    Copyright © Kakao Corp. All rights reserved.

    티스토리툴바