Language_Coder 542 : 반복제어문2 - 자가진단2

boom.jun.cho·2022년 3월 15일
0

Language_Coder_JUNGOL

목록 보기
82/197

문제

10부터 20까지의 숫자를 차례대로 출력하는 프로그램을 작성하시오. for문을 사용하세요.

출력

10 11 12 13 14 15 16 17 18 19 20

코드

package com.jungol.algorithm082;

public class Main {
    public static void main(String[] args) {
    	
    	for(int i = 10; i < 21; i++) {
    		System.out.print(i + " ");
    	}
    }
}

    		
    		
profile
하루하루 최선을

0개의 댓글