Celsius to Fahrenheit

    0

    0

    Giovanny Gongora

    Codiga's C++ Recipes

    Given temperature in Β°C, convert to Fahrenheit

    #include <iostream>
    
    using namespace std;
    int convertCtoF(){
    	float c;
    	cout << "Enter temperature in Celsius\n";
    	cin >> c;
    	float f = (9 *c) / 5;
    	f += 32;
    	cout << "Temperature in Fahrenheit:" << f;
    }
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.