C Programming, How to calculate employee salary

How to calculate employee salary

#include <stdio.h>
#include <stdlib.h>

void main(){
    int teaching_hours_per_day;
    float rate_per_hours,salary;
    printf("input teaching_hours_per_day: h");
    scanf("%d",& teaching_hours_per_day);
    printf("input rate_per_hours: $");
    scanf("%f",& rate_per_hours);
    printf("\n");
    salary=teaching_hours_per_day*rate_per_hours;
    printf("Salary payment is=%0.2f$\n",salary);
    getch();
}



C Programming, How to calculate employee salary C Programming, How to calculate employee salary Reviewed by John on September 10, 2017 Rating: 5

No comments