Skip to content

Instantly share code, notes, and snippets.

@annibuliful
Last active August 27, 2017 13:46
Show Gist options
  • Save annibuliful/a8a4bd76c1172c7759779b2d86098b2a to your computer and use it in GitHub Desktop.
Save annibuliful/a8a4bd76c1172c7759779b2d86098b2a to your computer and use it in GitHub Desktop.
#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