Untitled
unknown
plain_text
6 months ago
269 B
2
Indexable
package main import ( "fmt" ) func konversi(celsius float64) float64 { return (celsius * 9 / 5) + 32 } func main() { var celsius float64 fmt.Print("Masukkan suhu dalam Celsius: ") fmt.Scan(&celsius) fahrenheit := konversi(celsius) fmt.Println(fahrenheit) }
Editor is loading...
Leave a Comment