- 1
[Solved] New Drivers License
** Simple if/else if solution that divides possible wait times into groups. ** https://code.sololearn.com/c2bk3ZABV53o/?ref=app
1 Resposta
+ 2
This would do the same thing:
if(time<= 20){
System.out.println(20);
}
else if(time <= 40){
System.out.println(40);
}
else if(time <= 60){
System.out.println(60);
}
else if(time <= 80){
System.out.println(80);
}
else{
System.out.println(100);
}