Respuesta :

Answer:

#include <bits/stdc++.h>

using namespace std;

int main() {

  double time_h,temp_c;//declaring two variables for time and temperature of type double.

  cout<<"Enter the time"<<endl;

  cin>>time_h;//taking input of the time...

  temp_c=((4*2*time_h)/(time_h+2)-20);//calculating the temperature...

  cout<<temp_c<<endl;//printing the temperature..

return 0;

}

Explanation:

I have taken 2 variables of type double.

I am taking input of time from the user.

Then after that calculating the time according to the equation.

Then printing the output.

ACCESS MORE