Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var degrees float32
- fmt.Scanln(°rees)
- if (degrees >= 5 && degrees < 12) {
- fmt.Println("Cold")
- } else if (degrees >= 12 && degrees < 15) {
- fmt.Println("Cool")
- } else if (degrees >=15 && degrees <= 20) {
- fmt.Println("Mild")
- } else if (degrees > 20 && degrees < 26) {
- fmt.Println("Warm")
- } else if (degrees >= 26 && degrees <= 35) {
- fmt.Println("Hot")
- } else {
- fmt.Println("unknown")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement