-
-
Save parzibyte/d9cc6fd4b4a6051599de8c4de0f108fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function centigradosAFahrenheit($centigrados) | |
{ | |
return $centigrados * 9 / 5 + 32; | |
} | |
$centigrados = 50; | |
$fahrenheit = centigradosAFahrenheit($centigrados); | |
echo "Los $centigrados grados centígrados equivalen a $fahrenheit grados fahrenheit"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment