fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int i;
  6. float f=1;
  7. for ( i=100; i>0; i--){
  8. f-=0.1f;
  9. printf ( "%.7f\n", f);
  10. }
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2052KB
stdin
Standard input is empty
stdout
0.9000000
0.8000000
0.7000000
0.5999999
0.4999999
0.3999999
0.2999999
0.1999999
0.0999999
-0.0000001
-0.1000001
-0.2000001
-0.3000001
-0.4000001
-0.5000001
-0.6000001
-0.7000001
-0.8000001
-0.9000001
-1.0000002
-1.1000001
-1.2000001
-1.3000002
-1.4000002
-1.5000002
-1.6000002
-1.7000003
-1.8000003
-1.9000003
-2.0000003
-2.1000002
-2.2000001
-2.3000000
-2.4000000
-2.4999999
-2.5999998
-2.6999997
-2.7999996
-2.8999995
-2.9999994
-3.0999993
-3.1999992
-3.2999991
-3.3999990
-3.4999989
-3.5999988
-3.6999987
-3.7999986
-3.8999985
-3.9999984
-4.0999983
-4.1999985
-4.2999984
-4.3999983
-4.4999982
-4.5999981
-4.6999980
-4.7999979
-4.8999978
-4.9999977
-5.0999976
-5.1999975
-5.2999974
-5.3999973
-5.4999972
-5.5999971
-5.6999970
-5.7999969
-5.8999969
-5.9999968
-6.0999967
-6.1999966
-6.2999965
-6.3999964
-6.4999963
-6.5999962
-6.6999961
-6.7999960
-6.8999959
-6.9999958
-7.0999957
-7.1999956
-7.2999955
-7.3999954
-7.4999953
-7.5999952
-7.6999951
-7.7999950
-7.8999949
-7.9999949
-8.0999948
-8.1999947
-8.2999950
-8.3999954
-8.4999958
-8.5999962
-8.6999966
-8.7999969
-8.8999973
-8.9999977