#include<stdio.h>
int main(){
int year,time;
double money;
scanf("%d %d",&year,&time);
if(year>5){ //老员工
//继续判断工作40小时以上还是以下
if(time<40){
money = 50*time;
} else{
money = 50*40+(time-40)*1.5*50;
}
}else{ //新员工
if(time<40){
money = 30*time;
} else{
money = 30*40+(time-40)*1.5*30;
}
}
printf("%.2f\n",money);
return 0;
}
计算工资(20 分)
猜你喜欢
转载自blog.csdn.net/qq_41815146/article/details/84111321
今日推荐
周排行