Ejercicio7.java 227 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
public class Ejercicio7 {
    public static void main(String[] args) {
        
        for (int i = 1; i <=100; i++) {
            if (i%2==0 && i%3==0) {
                System.out.println(i);
            }
        }
    }
}