JavaCompilerCore/examples/achim/ElseIf.jav
2013-10-18 13:33:46 +02:00

20 lines
223 B
Java
Executable File

class ElseIf{
public static void main(args){
s;
i;
s = args;
e;
if(s < 10){
e = s + 10;
}
else if(s > 10 && s < 20){
e = s + 20;
}
else if(s > 20){
e = s + 30;
}
else{
e = s + 30;
}
}
}