Generation

generate functionFri, 21 Apr 2023

Convertir de grados Fahrenheit a centígrados y viceversa.

double fahrenheit_to_celsius(double fahrenheit) { return (fahrenheit - 32.0) * 5.0 / 9.0; } double celsius_to_fahrenheit(double celsius) { return celsius * 9.0 / 5.0 + 32.0; }

Questions about programming?Chat with your personal AI assistant