I am trying to write a program that will display a table with "seconds" and "Distance". Where Seconds goes from 1-12 and the distance is displayed according to each second. However I am having trouble getting the distance variable to display any values. Help would be very much appreciated, by the way I am also using a second function in this program besides main(), called FallingDistance(). Thanks again for any help. Below is my code for the program so far.
#include <iostream>
using namespace std;
double FallingDistance(int, double);
int main()
{
int Seconds;
double Distance=0;
int distance;
Okay thank you.
And no it shows errors if I remove line 2.
But I am still having trouble with the prototype FallingDistance.
The program still will only display seconds 1-12, but the distance will not display at all.
I just corrected the variables to where there is only Distance.
And I also corrected the division problem, but for some reason my program is applying the calculations to the Seconds variable instead of the Distance variable.