#include <iostream>
using namespace std ;
int main ( )
{
int employe , overtime , overpay , hours ;
for ( employe = 1 ; employe <= 10 ; employe++ )
{
cout <<" \n Enter the hours worked by a worker : ";
cin >> hours ;
if ( hours > 40 )
{
overtime = hours - 40 ;
overpay = overtime * 12 ;
cout <<" \n The overtime pay of employe is ";
cout << overpay << " rupees" << endl ;
}
else
{
cout <<" \n Their is no overtime pay ";
}
}
return 0 ;
}
No comments:
Post a Comment
Must drop your comments about post.