임보경/practiceJava/javaBasic/question/Q6MultiplesOf3.java
<gh_stars>0package javaBasic.question;

public class Q6MultiplesOf3 {

    public void q6Solve() {
        System.out.println("1 ~ 100까지 숫자중 3의 배수만 출력해보자!");
        for (int i = 1; i <= 100; i++) {
            if (i % 3 == 0) {
                System.out.print(i + " ");
            }
        }
        System.out.println();
    }
}
