fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. float j = 1;
  5. while (j <= 2)
  6. {
  7. printf("j = %5.20f\n", j);
  8. j = j + 0.2;
  9. }
  10. printf("j = %5.20f\n", j);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
j = 1.00000000000000000000
j = 1.20000004768371582031
j = 1.40000009536743164062
j = 1.60000014305114746094
j = 1.80000019073486328125
j = 2.00000023841857910156