Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. for (float y, x = -1.0; x <= 1.0; x += 0.1) {
  2. y = (4*x*x*x) + (3*x*x) + (5*x) - 10;
  3. printf("x = %.2f, y = %.2fn", x, y);
  4.  
  5. }
  6.  
  7. x = -1.00, y = -16.00
  8. x = -0.90, y = -14.99
  9. x = -0.80, y = -14.13
  10. x = -0.70, y = -13.40
  11. x = -0.60, y = -12.78
  12. x = -0.50, y = -12.25
  13. x = -0.40, y = -11.78
  14. x = -0.30, y = -11.34
  15. x = -0.20, y = -10.91
  16. x = -0.10, y = -10.47
  17. x = 0.00, y = -10.00
  18. x = 0.10, y = -9.47
  19. x = 0.20, y = -8.85
  20. x = 0.30, y = -8.12
  21. x = 0.40, y = -7.26
  22. x = 0.50, y = -6.25
  23. x = 0.60, y = -5.06
  24. x = 0.70, y = -3.66
  25. x = 0.80, y = -2.03
  26. x = 0.90, y = -0.15
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement