Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- double n1 = Double.parseDouble(scanner.nextLine()),
- n2 = Double.parseDouble(scanner.nextLine());
- System.out.println(Math.abs(n1 - n2) <= 0.000001 ? "True" : "False");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement