public class Multiplosde3 {
public static void main(String[] args) {
for (int numero = 1; numero <= 100; numero++) {
if (numero % 3 == 0) {
System.out.print(numero);
System.out.print("/");
}
}
}
)
Resultado:
3/6/9/12/15/18/21/24/27/30/33/36/39/42/45/48/51/54/57/60/63/66/69/72/75/78/81/84/87/90/93/96/99/