This works in my Eclipse, but I think there is a better way to do it.public static void main(String args[]) {       for(int i = 1; i < 101; i++)       {           if(i%3 == 0)           {           System.out.println(repetitive of 3);           }           else if(i%5 == 0)           {           System.out.println(repetitive of 5);           }           else{               System.out.println(i);           }       }   }}
Program that prints out repetitions of 3 and 5
java