inblog logo
|
DailyCoding
    Practice

    2. 20부터 11까지 숫자 나열

    박은서's avatar
    박은서
    Dec 08, 2025
    2. 20부터 11까지 숫자 나열
    Contents
    풀이정답

    풀이

    package ex03; public class Test2Me { public static void main(String[] args) { int i = 21; for (int j = 0; j < 10; j++) { i--; System.out.println(i); } } }
    notion image

    정답

    package ex03; public class Test2T { public static void main(String[] args) { for (int i = 20; i > 10; i--) { System.out.println("i의 값은 : "+i); } } }
    notion image
    Share article
    Contents
    풀이정답

    DailyCoding

    RSS·Powered by Inblog