#include #include int main() { double theta = /*0.78500*/1.5700; double v = 10; double dt = 0.001; double g = 9.8; double vx, vy, x, y, t; vx = v * cos(theta); vy = v * sin(theta); x = 0; y = 0; t = 0; while (t < 2) { printf("%f %f %f\n", t, x, y); x = x + vx * dt; y = y + vy * dt; vy = vy - g * dt; t = t + dt; } return 0; }