Write a program to calculate overtime pay of 10 employees. Overtime is paid at the rate of Rs. 120.00 per hour for every hour worked above 40 hours. Assume that employees do not work for fractional part of an hour.

source file name:  empot.C

void main()

{

int twh,oth;

int emp;

int otamt;

clrscr();

emp=1;

while(emp<=3)

{

printf("\n enter employees working hours:");

scanf("%d",&twh);

if(twh>40)

{

oth=twh-40;

otamt=oth*120;

printf("\n over time pay: %d",otamt);

}

else

printf("\n no over time ");


emp++;

}

getch();

}

output: