diff --git a/PariDispari.class b/PariDispari.class new file mode 100644 index 0000000..c18c369 Binary files /dev/null and b/PariDispari.class differ diff --git a/PariDispari.java b/PariDispari.java new file mode 100644 index 0000000..ccbe2e7 --- /dev/null +++ b/PariDispari.java @@ -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"); + } +}