0

I runned my arithmetic operations with double data type and i got o/p for postive,negative and decimals nos and if i am using three pont decimal no(0.0005) means i am getting as (2.5E-7 & 4.0E-4) two diff nos and this is my code

```
import java.io.*;
public class arithmetic
{
public static void main(String args[]) throws IOException
{
double add;
double sub;
double multiply;
double divide;
BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the Value of a : ");
double a = Double.parseDouble(br1.readLine());
System.out.print("Enter the Value of b : ");
double b = Double.parseDouble(br1.readLine());
add = a + b;
sub = a- b;
multiply = a*b;
divide = a/b;
System.out.print("After Airthmetic operations:\n");
System.out.println("Result of Addition: "+add);
System.out.println("Result of Subraction: "+sub);
System.out.println("Result of Multiplication: "+multiply);
System.out.println("Result of Division: "+divide);
}
}
```