Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class projecto3 {
- public static void main(String[] args) {
- Scanner sc=new Scanner(System.in);
- System.out.println("Ingresa un numero ");
- int a = sc.nextInt();
- if(a%2==0){
- System.out.println(a+" El numero es par");
- }else{
- System.out.println(a+" El numero es impar");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement