#include <iostream>
using namespace std;
int main()
{
double S,U,T,G;
cout<<"Enter U : ";
cin>>U;
cout<<"Enter T : ";
cin>>T;
cout<<"Enter G : ";
cin>>G;
S=U*T+0.5*G*T*T;
cout<<"S is : "<<S<<endl;
return 0;
}
Comments
Leave a comment