Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- )
- func main() {
- score := 88
- switch {
- case score >= 90:
- fmt.Println("A")
- case score >= 80:
- fmt.Println("B")
- case score >= 70:
- fmt.Println("C")
- case score >= 60:
- fmt.Println("D")
- default:
- fmt.Println("F")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement