Kod:
/* Egik Atıs Hareketi Hesaplama
*/
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int ilkh;
cout<<"Ilk Hizi Giriniz (m/s):n";
cin >> ilkh ;
int aci;
cout<<"Aciyi Giriniz (^):n";
cin >> aci;
int sure;
cout<<"Sureyi Giriniz (s) :n";
cin >> sure;
int hmax;
hmax=ilkh*cos(aci*3.14/180)*sure;
cout<<"Cikacagi Max Yukseklik = "<<hmax;
cout<<" metre";
cout<<"n";
int menzil;
menzil=ilkh*ilkh*sin(2*aci)/9.8;
cout<<"Menzili = "<<menzil;
cout<<" metre";
cout<<"n";
int krdntx;
krdntx=ilkh*cos(aci)*sure;
cout<<"t Anindaki X Koordinati = "<<krdntx;
cout<<"n";
int krdnty;
krdnty=ilkh*sin(aci)*sure;
cout<<"t Anindaki Y Koordinati = "<<krdnty;
cout<<"n";
system("pause");
}