Skip to content

Instantly share code, notes, and snippets.

@shockalotti
Created May 14, 2014 02:42
Show Gist options
  • Save shockalotti/079ba005975cbdf04246 to your computer and use it in GitHub Desktop.
Save shockalotti/079ba005975cbdf04246 to your computer and use it in GitHub Desktop.
Go golang - calculate meters
package main
import"fmt"
func main (){
fmt.Print("Enter length in feet:")
var input float64
fmt.Scanf("%f", &input)
output:= input * 0.3048
fmt.Println("Lengh is",output,"meters")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment