> 其他 >
假设奖金和税率如下(a代表奖金,r代表税率),用switch结构编程计算扣除奖金税后所得的奖金数?
a
人气:479 ℃ 时间:2019-08-20 02:08:06
解答
#include <stdio.h>void main(){ int result=0; int money=0; printf("Please input the money you get: "); scanf("%d",&money); if(money<500)result=0; else if(money<1000)result=money/2...
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版