fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5.  
  6. class Ideone
  7. {
  8. public static void main (String[] args) throws java.lang.Exception
  9. {
  10. int n;
  11. Scanner in = new Scanner(System.in);
  12. n = in.nextInt();
  13. double x, y;
  14. x = in.nextDouble();
  15. System.out.println (x*x + " ");
  16. for(int i=0; i<(n-1); i++)
  17. {
  18. y = in.nextDouble();
  19. System.out.println (x*y + " ");
  20. }
  21. }
  22. }
Success #stdin #stdout 0.15s 31456KB
stdin
7 3 5 8 -4 1.2 3.2 6 7 1
stdout
9.0 
15.0 
24.0 
-12.0 
3.5999999999999996 
9.600000000000001 
18.0