第五周-C语言 员工工资计算

来源:互联网 发布:js中的innerhtml 编辑:程序博客网 时间:2024/04/29 16:49
张威  2016.9.29   

#include <stdio.h>#include <stdlib.h>int main(){    int hour,money ;    printf("欢迎,请输入员工工作时间:");    scanf("%d",&hour);    if (hour<=40)       money=hour*20;    else        money=800+(hour-40)*30;        printf("工资为:%d\n",money );    return 0;}


0 0
原创粉丝点击