Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. //Using the example program as a starting point, write a program that converts
  2. //from Fahrenheit into Celsius (C = (F − 32) * 5/9).
  3. package main
  4.  
  5. import "fmt"
  6.  
  7. func main() {
  8. fmt.Println("Enter Temperature in Fahrenheit")
  9. var input float64
  10.  
  11. fmt.Scanf("%f",&input)
  12.  
  13. temp_Celsius := (input - 32) * 5/9
  14.  
  15. fmt.Println(temp_Celsius)
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement