Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ex18;
- import java.util.Scanner;
- public class ex18 {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int n;
- for(n = 2; n <= 100; n = n+2){
- System.out.println(n);
- }
- }
- }
- // imprimir todos numeros pares de 1 a 100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement