For Java
Write code for an if-else block that checks separates integers into the following categories: An integer less than 0, An integer greater than 0 and less than or equal to 10, An integer greater than 10 that is even, and an integer greater than 10 that is odd. Have each category print out a different statement.
What are some ways you can make your code more efficient when using if-else blocks?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here