Posts
 
Reputation
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
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 1

1 Posted Topic

Member Avatar for eortiz10

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; }

Member Avatar for klikendish
0
2K

The End.