Skip to content

Instantly share code, notes, and snippets.

@shockalotti
Last active August 29, 2015 14:01
Show Gist options
  • Save shockalotti/d08b1b4277d8e1524b15 to your computer and use it in GitHub Desktop.
Save shockalotti/d08b1b4277d8e1524b15 to your computer and use it in GitHub Desktop.
Go Golang - Calculate degrees celcius from farenheit
package main
import"fmt"
func main (){
fmt.Print("Enter a temperature in Farenheit:")
var input float64
fmt.Scanf("%f", &input)
output:= (input - 32)*5/9
fmt.Println("Temperature is",output,"degrees Celcius")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment