Created
April 27, 2020 14:25
-
-
Save john-nash-rs/96bfd1b1ef04239f69ce8717a8861141 to your computer and use it in GitHub Desktop.
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" | |
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