Answer to Question #101265 in C++ for Madhur

Question #101265
WAP to calculate the value of S where
S=U*T+0.5*G*T*T
1
Expert's answer
2020-01-13T03:34:24-0500
#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS