Untitled
public text v1 · immutable#include <iostream>
using namespace std;
int main()
{
int gravity;
double time, distance;
gravity = 32;
cout << "Press return after entering a number.\n";
cout << "Enter the time it takes the object to fall in seconds:\n";
cin >> time;
distance = (gravity*time*time)/2;
cout << "If the object fell for ";
cout << time;
cout << " seconds then it traveled ";
cout << distance;
cout << " feet:\n";
return 0;
}