JavaCompilerCore/examples/achim/ElseIf.jav

20 lines
223 B
Plaintext
Raw Normal View History

2013-10-18 11:33:46 +00:00
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;
}
}
}