/* * 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 ejercicios; /** * * @author roshka */ public class Ejercicio07 { public static void main(String[] args){ for (int i = 0; i < 101; i++) { if (i%2==0) { System.out.println("Divisible por 2: "+i); }else{ System.out.println("Divisible por 3: "+i); } } } }