Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Using the example program as a starting point, write a program that converts
- //from Fahrenheit into Celsius (C = (F − 32) * 5/9).
- package main
- import "fmt"
- func main() {
- fmt.Println("Enter Temperature in Fahrenheit")
- var input float64
- fmt.Scanf("%f",&input)
- temp_Celsius := (input - 32) * 5/9
- fmt.Println(temp_Celsius)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement