Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement