public class Osztas { public void prog(){ System.out.println("A 3-al, 5-el, 7-el nem oszthato szamok 1-100-ig:"); for (int i=0;i<=100;i++){ if ( i % 3 ==0 || i % 5 ==0 || i % 7 ==0 ) continue; System.out.print(i+" "); } } public static void main(String[] args) { Osztas e=new Osztas(); e.prog(); } }