fork download
  1. class test{
  2. public static void main (String argv[]){
  3. double x = 0.1;
  4. double y = 0;
  5. for (int i =0;i<10 ; i++){
  6. y=y+x;
  7. System.out.println (y);
  8. }
  9. }
  10. }
Success #stdin #stdout 0.07s 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