Untitled
unknown
plain_text
a year ago
269 B
6
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