Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* write a program to find out velocity of a free fall object from a specific height.
- des: as input you will give an floating number as height.. value should not exeed 0<X<250
- and out put will be a single floating number with 2 decimal points.
- Note: object will fall from a Stable condition. and earth g=9.8m/s2 */
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- double height, time, g = 9.8, a, velocity;
- printf("Please enter your value:");
- scanf("%lf", &height);
- a = (2 * height) / g;
- time = sqrt (a);
- velocity = height * time;
- printf("%0.2lf", velocity);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement