Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var weather string
- fmt.Scanln(&weather)
- if (weather == "sunny") {
- fmt.Println("It's warm outside!")
- } else {
- fmt.Println("It's cold outside!")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement