#include<iostream.h>
#include<conio.h>
#include<math.h>
#define G 9.8
#define PI 3.14159265
#define RADIANS_PER_DEGREE (PI / 180)
void main()
{
float velocity, theta;
clrscr();
cout<<"Enter velocity & theta :";
cin>>velocity>>theta;
/* Convert degree into Radians */
theta *= RADIANS_PER_DEGREE;
cout<<"\nDistance :"<<(velocity * velocity * sin(2 * theta) / G);
cout<<"\nTime :"<<(2 * velocity * sin(theta) / G);
cout<<"\nHeight :"<<(velocity * velocity * sin(theta) / G;
}