fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. double outPut = 0;
  13. for (int x = 0; x < 10; x++) {
  14. outPut += 0.1;
  15.  
  16. System.out.println(outPut);
  17. }
  18. }
  19. }
Success #stdin #stdout 0.08s 380160KB
stdin
Standard input is empty
stdout
0.1
0.2
0.30000000000000004
0.4
0.5
0.6
0.7
0.7999999999999999
0.8999999999999999
0.9999999999999999