blob: c4e18284d8c04b5b5cce6fc1a5bf3641186964e4 (
plain)
1
2
3
4
5
6
7
8
9
|
//Given that
g = 9.8 //in m/s^2
Radius = 2.7 //in meter
//Sample Problem 6-7
printf("**Sample Problem 6-7**\n")
//The velocity at highest point is equal to sqrt(gR)
velocity_topmost = sqrt(g * Radius)
printf("The velocity of ball at the topmost point would be %f m/s", velocity_topmost)
|