45 Star 130 Fork 53

Apocalypse / c2go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
5.go 347 Bytes
一键复制 编辑 原始数据 按行查看 历史
ZenQy 提交于 2015-03-29 18:12 . last push
// 学习成绩>=90 分的同学用 A 表示,60
// -89 分之间的用 B 表示,60 分以下的用 C 表示。
package main
import (
"fmt"
)
func main() {
var score int
fmt.Println("Please input the score:")
fmt.Scanln(&score)
if score >= 90 {
fmt.Println("A")
} else if score < 60 {
fmt.Println("C")
} else {
fmt.Println("B")
}
}
Go
1
https://gitee.com/justin.qin/c2go.git
git@gitee.com:justin.qin/c2go.git
justin.qin
c2go
c2go
master

搜索帮助