From 6603d5a9d642a226c092b1253c8116104669a949 Mon Sep 17 00:00:00 2001 From: VigyatBansal <63166899+VigyatBansal@users.noreply.github.com> Date: Thu, 1 Oct 2020 14:11:06 +0530 Subject: [PATCH] Update Solution.java Removed irrelevant brackets --- Introduction/Java If-Else/Solution.java | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Introduction/Java If-Else/Solution.java b/Introduction/Java If-Else/Solution.java index b2c44ce..8e3d3c5 100644 --- a/Introduction/Java If-Else/Solution.java +++ b/Introduction/Java If-Else/Solution.java @@ -17,25 +17,25 @@ public static void main(String[] args) if(n>=1&&n<=100) { if(n%2!=0) - { - System.out.println("Weird"); - } + System.out.println("Weird"); else if(n%2==0) { if(n>=2&&n<=5) - { - System.out.println("Not Weird"); - } + System.out.println("Not Weird"); else if(n>=6&&n<=20) - { - System.out.println("Weird"); - } + System.out.println("Weird"); else if(n>20) - { - System.out.println("Not Weird"); - } + System.out.println("Not Weird"); } - } - scanner.close(); + } + scanner.close(); } } + + + + + + + +