fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double celsius, fahrenheit;
  6. cout << "Enter temperature in Celsius: ";
  7. cin >> celsius;
  8. fahrenheit = (celsius * 9.0 / 5.0) + 32;
  9. cout << "Temperature in Fahrenheit is: " << fahrenheit << endl;
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5304KB
stdin
 
stdout
Enter temperature in Celsius: Temperature in Fahrenheit is: 32