Advertisement
tchenkov

L03u12_Speed_Info

Jan 18th, 2017
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. /*
  4.  * Created by todor on 18.01.2017 г..
  5.  */
  6. public class u12_Speed_Info {
  7.     public static void main(String[] args) {
  8.  
  9.         Scanner scan = new Scanner(System.in);
  10.  
  11.         double speed = Double.parseDouble(scan.nextLine());
  12.  
  13.         if (speed <= 10){
  14.             System.out.println("slow");
  15.         }
  16.         else if (speed > 1000){
  17.             System.out.println("extremely fast");
  18.         }
  19.         else if (speed > 150){
  20.             System.out.println("ultra fast");
  21.         }
  22.         else if (speed > 50){
  23.             System.out.println("fast");
  24.         }
  25.         else {
  26.             System.out.println("average");
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement