From 1c059137eda9fa9e16a5889374fa5ca868a3915e Mon Sep 17 00:00:00 2001 From: Raffaele Mignone Date: Wed, 5 Oct 2016 16:17:52 +0200 Subject: [PATCH] PariDispari --- PariDispari.class | Bin 0 -> 699 bytes PariDispari.java | 12 ++++++++++++ 2 files changed, 12 insertions(+) create mode 100644 PariDispari.class create mode 100644 PariDispari.java diff --git a/PariDispari.class b/PariDispari.class new file mode 100644 index 0000000000000000000000000000000000000000..c18c36930d4bbe06fd49777afe8c8b4fd6a70cb1 GIT binary patch literal 699 zcmZuv+iuf95IyT$)^Xem4JiTIkaA60sA=Je0xuw>NGVh@LP9)k%&OWFuPw($@GJZP z&-5XcK;i@VClE8HQd$XH+PR-IGrPb3eE$jHAs%>GK&OGrxZ>ifhc&EAblJYpTevH5p=2#`GYP^-S*tT2_pr?uPDJanXH>pX20~#}@VYQ0)1X?A=dAC3< z;jC0nkfW^`+$U?b^a~a_ z+L*!niYBW~QW@7Nal4SDSK-nFYY|I_>@HaYc-TP`7b)t&`Hg`@TS#JFEo(3R1sar+ A<^TWy literal 0 HcmV?d00001 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"); + } +}