Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int main() {
- double tempf;
- double tempc;
- // Ask the user
- std::cout << "Enter the temprature in Fahrenheit: ";
- std::cin >> tempf;
- tempc = (tempf - 32) / 1.8;
- std::cout << "The temp is " << tempc << " degrees Celsius.\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement