Practice from 2-6 calculated free falling objects (5 points)
Free fall of an object from an altitude of 100 m. Programming, seeking its vertical distance of the whereabouts of the previous 3 seconds. Gravitational acceleration of 10 m / sec 2 .
Input formats:
This title is not entered.
Output formats:
In the following format output
height = 垂直距离值
Results of 2 decimal places.
Unit: Zhejiang University
Time limit: 400 ms
Memory Limit: 64 MB
#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
float h;
h=0.5*10.0*3.0*3.0;
printf("height = %.2f\n",h);
return 0;
}