PariDispari
This commit is contained in:
parent
6c6638ca6e
commit
1c059137ed
BIN
PariDispari.class
Normal file
BIN
PariDispari.class
Normal file
Binary file not shown.
12
PariDispari.java
Normal file
12
PariDispari.java
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
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");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user