Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- using namespace std;
- main(){
- // Celsius
- double C;
- cout << "Celsius to Fahrenheit Conversion: ";
- cin >> C;
- // Fahrenheit
- double F;
- F = 9 * C / 5 + 32;
- cout << "Temperature: " << std::setprecision(3) << std::fixed << F << " degrees Fahrenheit";
- }
Add Comment
Please, Sign In to add comment