Here is my code
num1
etc are int
variable
double numProduct1;
numProduct1 = (num1 * num2 * num3 * num4);
System.out.printf("%.3f ", numProduct1);
Inputs are respectively (num1,num2,num3,num4):
100000 200000 300000 500000
my code would output -1679818752.000
instead of 3000000000000000000000.000