/* * 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. */ /** * * @author user */ public class Ejercicio07 { public static void main(String[] args) { for (int i = 1; i <= 100; i++) { if(i%2==0 || i%3==0){ System.out.print(" | "+i); } } System.out.println(" |"); } }