Scanner sc = new Scanner(System.in);
double a = sc.nextDouble();
double b = sc. nextDouble();
if(Math.abs(b - a) < 0.000001 ){
System.out.println("The numbers are equal");
}else{
//write your code here
System.out.println("The numbers are not equal");
}
Solution
New
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet