{
int x,y
scanf("%d",&x)
if(x<1) y=x
else if(x<10)y=2*x-1
else y=3*x-11
printf("%d",y)
}
int scoreswitch(score/10){
case 10:
cout<<'A'
break
case 9:
cout<<'A'
break
case 8:
cout<<'B'
break
case 7:
cout<<'C'
break
case 6:
cout<<'D'
break
case 5:
cout<<'E'
break
case 4:
cout<<'E'
break
case 3:
cout<<'E'
break
case 2:
cout<<'E'
break
case 1:
cout<<'E'
break
case 0:
cout<<'E'
break
default:
cout<<'error'
break
}
希望随你有帮助哈。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)