Computer Science, asked by leenatchandra2157, 10 months ago

Write a program to calculate overtime pay of 10 employees

Answers

Answered by Rajputadarshsingh3
0

Answer:

);

#include<stdio.h>#include<conio.h>void main(){clrscr();int i, time_worked, over_time, overtime_pay=0;for(i=1;i<=10;i++){printf("\nenter the time employee worked in hr ");scanf("%d",&time_worked);if(time_worked>40){over_time=time_worked-40;overtime_pay=overtime_pay+(12*over_time);}}printf("\nTotal Overtime Pay Of 10 Employees Is %d",overtime_pay);getch();

#⃣#⃣#⃣

Similar questions