Hurricane

Run Settings
LanguageJava
Language Version
Run Command
class Hurricane { public static void main(String[] args) { int Speedswitch; Speedswitch = (int)Math.ceil(Math.random()*6); switch (Speedswitch) { case 1: System.out.println("In case 1 the speed of the wind travelling is 119-153 km/hr "); break; case 2: System.out.println("In case 2 the speed of he wind travelling is 154-177 km/hr"); break; case 3: System.out.println("In case 2 the speed of he wind travelling is 178-209 km/hr"); break; case 4: System.out.println("In case 3 the speed of the wind travelling is 210-249 km/hr"); break; case 5: System.out.println("In case 4 the speed of the wind travelling is 249 km/hr."); break; default: System.out.println("Has no case"); } } }
Editor Settings
Theme
Key bindings
Full width
Lines