programmazione-java/src/PariDispari.java
Orange_Dugongo dcb3dfd369 10-10-16
2016-10-10 17:10:32 +02:00

13 lines
294 B
Java

import java.util.Scanner;
public class PariDispari{
public static void main(String[] arg){
System.out.print("Inserisci un numero: ");
Scanner s = new Scanner(System.in);
int value=s.nextInt();
if(value%2==0)
System.out.println("Pari");
else
System.out.println("Dispari");
}
}