(URI) Números Pares - Solução
import java.io.*;
class Main {
public static void process() throws NumberFormatException, IOException {
for (int i = 2; i <= 100; i+=2) {
System.out.println(i);
}
return;
}
public static void main(String[] args) throws NumberFormatException, IOException {
Main m = new Main();
m.process();
System.exit(0);
}
}
class Main {
public static void process() throws NumberFormatException, IOException {
for (int i = 2; i <= 100; i+=2) {
System.out.println(i);
}
return;
}
public static void main(String[] args) throws NumberFormatException, IOException {
Main m = new Main();
m.process();
System.exit(0);
}
}
Comments
Post a Comment