Write c Program to find the value of Y in the following Equa

Write c++ Program to find the value of Y in the following Equation Y= 3T + 4 F - 5

Solution

main.cpp

#include <iostream>
using namespace std;

int main( ) {
   double Y,T,F;
   cout << \"Enter value for T : \";
   cin >> T;
   cout << \"Enter value for F : \";
   cin >> F;
   Y=3*T+4*F-5;
   cout <<\"Value of Y = \"<<Y;
   return 0;
}

Output :

 Write c++ Program to find the value of Y in the following Equation Y= 3T + 4 F - 5 Solutionmain.cpp #include <iostream> using namespace std; int main( )

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site