Advertisement
Spocoman

03. Celsius to Fahrenheit

Sep 15th, 2024 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.18 KB | None | 0 0
  1. package main
  2. import "fmt"
  3.  
  4. func main() {
  5.     var celsius float64
  6.     fmt.Scanln(&celsius)
  7.    
  8.     var fahrenheit = celsius * 1.800 + 32
  9.    
  10.     fmt.Printf("%.2f\n", fahrenheit)
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement