Last active
August 27, 2017 13:46
-
-
Save annibuliful/a8a4bd76c1172c7759779b2d86098b2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <math.h> | |
#define PI 3.1416 | |
#define G 32.2 | |
int main(){ | |
float second; | |
double result; | |
printf("input time: "); | |
scanf("%f" , &second); | |
result = g*(pow(second/(2*PI), 2)); | |
result = result*12 | |
printf("%lf \n",result); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment