Kagalive icon

F to C

Kagalive | PRO | 10/01/20 03:18:31 AM UTC | 0 ⭐ | 1795 👁️ | Never ⏰ | []
C++ |

250 B

|

None

|

0 👍

/

0 👎

#include <iostream>
using namespace std;
 
int main() 
{
 
  double fahrenheit{};
  double celsius{};
 
  cout << "Enter temperature (F): ";
  cin >> fahrenheit;
 
  celsius = (fahrenheit - 32.0)*5.0/9.0;
 
  cout << celsius << " degrees C\n";
 
 
}

Comments