We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- Introduction
- Java If-Else
- Discussions
Java If-Else
Java If-Else
Sort by
recency
|
1893 Discussions
|
Please Login in order to post a comment
import java.io.; import java.math.; import java.security.; import java.text.; import java.util.; import java.util.concurrent.; import java.util.regex.*;
public class Solution {
im getting wrong answer error anyone help me to solve this scanner.close(); } }
im getting error wrong answer anybody help me to solve this
In java if else problem What is wrong with my code i got all test cases are failed ? but manual input caseses are passed if(N%2!=0){ System.out.println("Weired"); } else if(N%2==0 && N>=2 && N<5){ System.out.println("Not Weired"); }else if(N%2==0 && N>=6 && N<=20){ System.out.println("Weired"); }else{ System.out.println("Not Weired"); }
This is what I came up with:
import java.io.; import java.math.; import java.security.; import java.text.; import java.util.; import java.util.concurrent.; import java.util.regex.*;
public class Solution {
}
public class Solution {
}