fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. float p;
  6. for (p = 0; p < 5; p += 0.5)
  7. {
  8. printf("p=%2.2f\n",p);
  9. }
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
p=0.00
p=0.50
p=1.00
p=1.50
p=2.00
p=2.50
p=3.00
p=3.50
p=4.00
p=4.50