#include
#include
int salary, years, bonus;
void main()
{
clrscr();
printf("Enter Salary:");
scanf("%d",&salary);
printf("Enter Yeras of Service:");
scanf("%d",&years);
bonus=0;
if(years==1)
{
bonus=salary*0.10;
printf("Bonus:%d",bonus);
}
else if((years<=5)&&(years>=2))
{
bonus=salary*0.20;
printf("Bonus:%d",bonus);
}
else if((years<=10)&&(years>=6))
{
bonus=salary*0.50;
printf("Bonus:%d",bonus);
}
else if(years<=11) { bonus=salary*0.75; printf("Bonus:%d",bonus); } getch(); }
Thursday, February 12, 2009
Posted by aw ulaw man pud ta ani at 11:25 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment