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