Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class projecto3 {
  3. public static void main(String[] args) {
  4. Scanner sc=new Scanner(System.in);
  5. System.out.println("Ingresa un numero ");
  6. int a = sc.nextInt();
  7. if(a%2==0){
  8. System.out.println(a+" El numero es par");
  9. }else{
  10. System.out.println(a+" El numero es impar");
  11. }
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement