#include #include #define g 9.807 int main() { float velocity = 0; printf("Enter the velocity : "); scanf("%f",&velocity); float time = (2*velocity* 0.5 )/g; float range = velocity * sqrt(3)/ 2.0 * time; float height = velocity * (0.5) * (time/2) - 0.5 * g * (time/2) * (time/2); printf("Range of projectile :%.03f\n",range); printf("Maximum height of projectile :%.03f\n",height); return 0; }