You are viewing a single comment's thread. Return to all comments →
//not working this code why????????? //harsh
Scanner sc=new Scanner(System.in); // int n=!20; int n=sc.nextInt(); String ans=""; if(n%2==1 && n <= 20){ ans = "Weird"; } else{ ans = "Not Weird"; //Complete the code } // System.out.println("get message1--->>>>"+n); // System.out.println("get message--->>>"+(n%2==1)); System.out.println(ans);
Seems like cookies are disabled on this browser, please enable them to open this website
Java If-Else
You are viewing a single comment's thread. Return to all comments →
//not working this code why????????? //harsh