Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11
I don't see an error, but, maybe it just needs a little rearrangement. int age = 20; if (age <= 0){ System.out.println("Error"); } else if (age <= 17){ System.out.println("Too young"); } else { System.out.println("Wellcome"); }
26th Mar 2017, 2:04 AM
MizoPro
MizoPro - avatar