import java.util.Scanner;

public class ExactProductOfRealNumbers {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int numberCount = Integer.parseInt(scanner.nextLine());
        double product = 1.0;

        for (int i = 0; i < numberCount; i++)
        {
            double currentNumber = Double.parseDouble(scanner.nextLine());
            product *= currentNumber;
        }

        System.out.println(product);
    }
}

@@ -229,22 +229,26 @@
         
-double
+BigDecimal
  product
@@ -254,11 +254,25 @@
 t = 
-1.0
+new BigDecimal(1)
 ;%0A%0A 
@@ -342,14 +342,18 @@
     
-double
+BigDecimal
  cur
@@ -369,26 +369,22 @@
 r = 
-Double.parseDouble
+new BigDecimal
 (sca
@@ -425,11 +425,27 @@
 uct 
-*
 = 
+product.multiply(
 curr
@@ -453,16 +453,17 @@
 ntNumber
+)
 ;%0A      

Make changes in ExactProductOfRealNumbers.