#include <iostream>
usingnamespace std;
void main (void)
{
// ** VARIABLES **
int time = 0;
int position = 0;
int velocity = 0;
const int acceleration = 1;
// ** In this example we go from time = 0 to time = 10
for (time=0; time<10; time++)
{
cout << "at time " << time << " position = " << position << ", ";
cout << " velocity = " << velocity << ", acceleration(constant) = " << acceleration;
cout << endl;
// ** CALCULATIONS **
position = position + velocity;
velocity = velocity + acceleration;
}
}
// - Delt