Advertisement
bstobbe

surfs up

May 1st, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class SurfsUp
  4. {
  5.  
  6. public static void main(String[] args)
  7. {
  8.  
  9. Scanner scan = new Scanner(System.in);
  10.  
  11. double wave = 0;
  12.  
  13. System.out.println("How big is the surf today brahh?");
  14.  
  15. wave = scan.nextDouble();
  16.  
  17.  
  18. if(wave >= 6)
  19. {
  20. System.out.println("Great day to shread!");
  21. }
  22. else if((wave >= 3.0) && (wave < 6.0))
  23. {
  24. System.out.println("Go Swimming!");
  25. }
  26. else if ((wave) >= 0 && (wave < 3.0))
  27. {
  28. System.out.println("Whoa! What kind of surf is that?");
  29. }
  30.  
  31. }
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement