Skip to content

Instantly share code, notes, and snippets.

@john-nash-rs
Created April 27, 2020 14:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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