Last active
February 28, 2022 21:42
-
-
Save samueltcsantos/e6ace5a957db48af0f31de595e8f1eef to your computer and use it in GitHub Desktop.
Converter Fahrenheit para Celsius em Go.
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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
var fahrenheit, celsius float32 | |
fmt.Print("Temperatura em Fahrenheit? ") | |
fmt.Scan(&fahrenheit) | |
celsius = 5 * ((fahrenheit - 32)/9) | |
fmt.Println(celsius, " Celsius") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check out my page to see other examples Mais exemplos ...