Skip to content

Instantly share code, notes, and snippets.

@john-nash-rs
Created April 27, 2020 14:25
Show Gist options
  • Save john-nash-rs/96bfd1b1ef04239f69ce8717a8861141 to your computer and use it in GitHub Desktop.
Save john-nash-rs/96bfd1b1ef04239f69ce8717a8861141 to your computer and use it in GitHub Desktop.
package main
import "fmt"
const boilingF = 212.0
func main(){
var f = boilingF
var c = (f - 32) * 5/9;
fmt.Printf(" boiling point in Centigrade %g and in Fahrenheit %g \n", c, f);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment