fork download
  1. X = 0.5
  2. while X <= 3.75:
  3. F=4 * X**3 - 2 * X**2 + 5
  4. print(X, F)
  5. X = X + 0.5
  6. if X != 3.75:
  7. X=3.75
  8. F=4 * X**3 - 2 * X**2 + 5
  9. print (X, F)
Success #stdin #stdout 0.01s 27656KB
stdin
Standard input is empty
stdout
0.5 5.0
1.0 7.0
1.5 14.0
2.0 29.0
2.5 55.0
3.0 95.0
3.5 152.0
3.75 187.8125