Write a c program to print the salary of employees by using switch case
Answers
Answered by
0
Answer:
#include <stdio.h>
int main() {
char id[10];
int hour;
double value, salary;
printf("Input the Employees ID(Max. 10 chars): ");
scanf("%s", &id);
printf("\nInput the working hrs: ");
scanf("%d", &hour);
printf("\nSalary amount/hr: ");
scanf("%lf", &value);
salary = value * hour;
printf("\nEmployees ID = %s\nSalary = U$ %.2lf\n", id,salary);
return 0;
}
Similar questions
Psychology,
1 month ago
Hindi,
1 month ago
Geography,
3 months ago
English,
3 months ago
English,
9 months ago