- 1

[Solved] New Drivers License

** Simple if/else if solution that divides possible wait times into groups. ** https://code.sololearn.com/c2bk3ZABV53o/?ref=app

3rd Dec 2021, 7:00 PM
Strt Tmknsn
Strt Tmknsn - avatar
1 ответ
+ 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); }
3rd Dec 2021, 7:36 PM
Paul
Paul - avatar