Answer to Question #326675 in C for osama

Question #326675

how to calculate total income a an employee


1
Expert's answer
2022-04-11T07:44:30-0400
#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();
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS