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 :
