Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.73K
1 Posted Topic
That is the cleaner version :) # include <iostream> using namespace std; double fallingDistance(double t) { return 0.5*9.8*t*t; } int main() { static double t; cout<<"Different falling times and distances.\n"; cout<<"_____________________\n"; cout<<"Time \t\t Distance\n"; cout<<"_____________________\n"; for (t=1;t<=10;t++) { cout<<t<<"\t\t"<<fallingDistance(t)<<endl; } return 0; }
The End.
klikendish