Generation

generate functionWed, 02 Aug 2023

Convertir una temperatura en grados celosíus ingresando el usuario a grados fahrenheit

#include <iostream> using namespace std; float celsiusToFahrenheit(float); int main() { float celsius; cout << "Ingrese el valor de la temperatura en grados celcius: "; cin >> celsius; cout << "La temperatura en grados fahrenheit es: " << celsiusToFahrenheit(celsius) << endl; return 0; } float celsiusToFahrenheit(float celsius) { return celsius * 1.8 + 32; }

Want to kickstart your project?Use the new AI Studio to create your code