12345
#include<> int main() { return 0; }
1234567891011
#include <iostream> #include <string> int main() { // needed so it can be changed std::string it; // ask the user for the temperature in Celsius std::cout << "the temperature in Celsius?"; // change it to Fahrenheit it = "Fahrenheit"; }
1234567891011121314151617
#include <iostream> float toFahrenheit(const float &C) { return (C * 9/5) + 32; } int main() { float C; std::cout << "Temperature in Celcius: "; std::cin >> C; std::cout << toFahrenheit(C); return 0; }