您的位置:首页 > 其它

计算有固定收入的党员每月所交纳的党费。月工资收入400元及以下者,交纳月工资总额的0.5%;月工资收入401~600元者,交纳月工资总额的1%;月工资收入601~800元者,交纳月工资总额的1.5%;

2016-09-20 11:13 441 查看
/*说在前面,为完成实验所写并保存记录,代码简单潦草,勿喷!*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Taxation
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("月入多少大洋?");
double salary = double.Parse(Console.ReadLine());

if (salary <= 400) {
Console.WriteLine("交{0}", salary * 0.005);
}
else if (salary >= 401 && salary < 600) {
Console.WriteLine("交{0}", salary * 0.01);
}
else if (salary >= 601 && salary < 800)
{
Console.WriteLine("交{0}", salary * 0.015);
}
else if (salary >= 801 && salary < 1500)
{
Console.WriteLine("交{0}", salary * 0.02);
}
else {
Console.WriteLine("交{0}", salary * 0.03);
}
Console.ReadLine();
}

}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐