Процедура работает for(int i = 0;i <=15;i++) { if((i % 2) == 0) System.out.println(i) ; }