The drinks stand names its cups by size: up to 350 ml is "small", up to 500 ml is "medium", anything more is "large". Write CupSize(ml) to return the name (exactly 350 is small, exactly 500 is medium).
CupSize(300)→'small'CupSize(450)→'medium'CupSize(700)→'large'func CupSize(ml int) stringpackage main
func CupSize(ml int) string {
size := ""
// your code here: if, else if, else to pick size
return size
}
Run tries the examples. When they look right, Submit.