Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#3 |
初级会员
注册日期: 2009-03-21
年龄: 58
帖子: 5
声望力: 0 ![]() |
![]()
x=input('请输入x的值:');
if x>=90 & x<=100 y='A' elseif x>=80 y='B' elseif x>=70 y='C' elseif x>=60 y='D' elseif x>=0 y='E' else 'error' end grade=input('请输入grade的值'); switch fix(grade/10) case{0,1,2,3,4,5} y='E' case{6} y='D' case{7} y='C' case{8} y='B' case{9,10} y='A' otherwise 'error' end; 注意基础知识,别和C语言混淆。那题目我在看看。 |
![]() |
![]() |