Grade by score
Go Branching
if / else if / else
Flowchart (ISO 5807)
Source code
func grade(score int) string {
if score >= 90 {
return "Відмінно"
} else if score >= 60 {
return "Задовільно"
}
return "Незадовільно"
}