#include<stdio.h>
#include<conio.h>void main()
{
int jy,cy,noy,bonus;
printf("Enter the joining year and current year: ");
scanf("%d%d",&jy,&cy);
noy=cy-jy;
if(noy>3)
{
bonus=10000;
printf("\nEmployee will receive a bonus of Rs. %d "
"as he has been working for %dyears",bonus,noy);
}
else
{
printf("\nEmployee will not receive any bonus "
"as he has been working for %dyears",noy);
}
getch();
}
OUTPUT:
No comments:
Post a Comment