go语言如何写if else if
1、第一行代码packege main
2、第二行代码import“fmt"
3、第三行代码func main(){
4、然后第四行输入var score = 65if score >= 90{酆璁冻嘌fmt.println("B")}else if score > 75 {fmt.println("B")}else {fmt.println("C")}
5、第五行输入代码体}
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:71
阅读量:78
阅读量:83
阅读量:57
阅读量:46