inblog logo
|
DailyCoding
    Practice

    1. 1부터 10까지 숫자 나열

    박은서's avatar
    박은서
    Dec 03, 2025
    1. 1부터 10까지 숫자 나열
    Contents
    풀이정답

    풀이

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

    정답

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

    DailyCoding

    RSS·Powered by Inblog