> 其他 >
c语言编写一个计算个人所得税程序
计算规则为:当月收入超过2000元时,超过部分按5%缴纳税款.是个初级c语言题目,不要写复杂了...
人气:323 ℃ 时间:2020-05-23 17:17:19
解答
#include <stdio.h>

int main()
{
  float x, tax = 0;
  scanf("%f", &x);
  if (x > 2000) tax = (x - 2000)*0.05;
  printf("tax = %f\n", tax);
  return 0;
}
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版