Advertisement
Guest User

Untitled

a guest
Jan 25th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. import java.util.Locale;
  2. import java.util.Scanner;
  3.  
  4. public class _03_PointsInsideAFigure {
  5. public static void main(String[] args) {
  6. @SuppressWarnings("resource")
  7. Scanner input = new Scanner(System.in);
  8. float a = input.useLocale(Locale.US).nextFloat();
  9. float b = input.useLocale(Locale.US).nextFloat();
  10. if ((a >= 12.5 && a <= 22.5 && b >= 6 && b <= 8.5)
  11. || (a >= 12.5 && a <= 17.5 && b >= 8.5 && b <= 13.5)
  12. || (a >= 20 && a <= 22.5 && b >= 8.5 && b <= 13.5)) {
  13. System.out.println("Inside");
  14. } else {
  15. System.out.println("Outside");
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement