how to calculate total income a an employee
#include <stdio.h>
int main()
{
float total, income_per_hour;
int hours;
printf("Enter income per hour: ");
scanf("%f", &income_per_hour);
getchar();
printf("Enter hours worked: ");
scanf("%d", &hours);
total = income_per_hour * hours;
printf("\nTotal income a an employee = %.2f", total);
getchar();
}
Comments
Leave a comment