14 lines
228 B
C++
14 lines
228 B
C++
#include <iostream>
|
|
#include <iomanip>
|
|
|
|
int main ()
|
|
{
|
|
int fahrenheit;
|
|
double celcius;
|
|
std::cin >> fahrenheit;
|
|
celcius = 5.0 / 9 * (fahrenheit - 32);
|
|
std::cout << std::setprecision(2) << std::fixed << celcius;
|
|
|
|
return 0;
|
|
}
|