* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates * and open the template in the editor. */ package javaapplication1; /** * * @author Fajar Septian */import java.util.Scanner; public class JavaApplication1 { /** * @param args the command line arguments */ public static void main(String[] args) { Scanner masukan=new Scanner(System.in); for (int i=1; i<=100; i++ ) if (((i%3==0) ||(i%5==0)) && (i%2==1 ) ) System.out.print(i+", "); } }