Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class SurfsUp
- {
- public static void main(String[] args)
- {
- Scanner scan = new Scanner(System.in);
- double wave = 0;
- System.out.println("How big is the surf today brahh?");
- wave = scan.nextDouble();
- if(wave >= 6)
- {
- System.out.println("Great day to shread!");
- }
- else if((wave >= 3.0) && (wave < 6.0))
- {
- System.out.println("Go Swimming!");
- }
- else if ((wave) >= 0 && (wave < 3.0))
- {
- System.out.println("Whoa! What kind of surf is that?");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement