Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 19, 2021 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/d9cc6fd4b4a6051599de8c4de0f108fa to your computer and use it in GitHub Desktop.
Save parzibyte/d9cc6fd4b4a6051599de8c4de0f108fa to your computer and use it in GitHub Desktop.
<?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