#include
int main()
{doublex,y,p1,p2;
而(1)
{Scanf(“%lf”,&x);
如果(x <= 0)中断;
X- = 3500;
如果(x <= 1500){p1 = 0.03; p2 = 0;}
否则,如果(x <= 4500){p1 = 0.1; p2 = 105;}
否则,如果(x <= 9000){p1 = 0.2; p2 = 555;}
= Y * x * p1-p2;
Printf(“个人所得税=%。2lf \ n”,y);
}
返回值0;
#include“” stdio.h“
intmain(无效){
双打,rs,老鼠;
Printf(“请输入您的电话号码... \ ns =“);
Scanf(“%lf”,&s);
如果(rs = s-2000,rs <500)
大鼠= 0.05;
否则(rs> = 500 && rs <2000)
大鼠= 0.1;
Elseif(rs> = 2000 && rs <5000)
大鼠= 0.15;
大鼠= 0.2;
大鼠= 0.25;
大鼠= 0.3;
大鼠= 0.35;
大鼠= 0.4;
大鼠= 0.45;
Printf(“ YOURSGS:%。2f \ tTAX:%。2f \ tAGS:%。2f \ n”,s,rat * rs,s-rat * rs);
返回0;