The forecast gives the chance of rain as rain (0 to 100). Write Umbrella(rain): return "take it" for 50 or more, otherwise "leave it".
Umbrella(80)→'take it'Umbrella(10)→'leave it'func Umbrella(rain int) stringpackage main
func Umbrella(rain int) string {
answer := "leave it"
// your code here: rain is 50 or more? change answer to "take it"
return answer
}
Run tries the examples. When they look right, Submit.