Hi
please explain the out put to this code.
public class FlowControl {
public int control(int x){
int a = 1;
a+= x;
if((x > 4) && (x < 10)){
a+= 2*x;
}else if(x <= 4){
a+= 3 * x;
} else {
a+= 4 * x;
}
a+= 5 * x;
return a;
}
public static void main(
String[] args) {
FlowControl o = new FlowCOntrol();
System.out.println("FC(34) is:" + o.control(34));
}
}
output is 341
Why not 171
why not 307
why not 205