Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- /*
- * Created by todor on 18.01.2017 г..
- */
- public class u12_Speed_Info {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- double speed = Double.parseDouble(scan.nextLine());
- if (speed <= 10){
- System.out.println("slow");
- }
- else if (speed > 1000){
- System.out.println("extremely fast");
- }
- else if (speed > 150){
- System.out.println("ultra fast");
- }
- else if (speed > 50){
- System.out.println("fast");
- }
- else {
- System.out.println("average");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement