18 строки
425 B
Go
18 строки
425 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"mygit.i2g.ru/biv/LearnGoDonovan/ch2/tempconv"
|
|
)
|
|
|
|
func main() {
|
|
fmt.Printf("Брррр! %v\n", tempconv.AbsoluteZeroC) // Брррр! -273.15°C
|
|
fmt.Println(tempconv.CToF(tempconv.BoilingC)) // 212°F
|
|
fmt.Println(tempconv.FToK(0.0))
|
|
fmt.Println(tempconv.CToK(tempconv.FreezingC))
|
|
fmt.Println(tempconv.FToC(-50))
|
|
fmt.Println(tempconv.KToC(0))
|
|
fmt.Println(tempconv.KToF(505.92789))
|
|
|
|
}
|