Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
else weird
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { int x=0; int a = 5; int b = 5; if (a > 0) if (b < 0) x = x + 5; else if (a > 5) x = x + 4; else x = x + 3; // x=3 else x = x + 2; // Ignored . System.out.println(x); // Output:3 } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Reverse string template
Sieve of Eratosthenes Revisited
Shortest distance between words
Count and Say
Street light
1*2-3+4
exp 2
1(D)
Java Variable
homework
Please log in to post a comment.