#include main() { double x, y; x = -3.0; while (x < 5.0) { y = 0.5*x*x*x - 2*x*x - x + 1.0; printf("%f %f\n", x, y); x += 0.01; } }