/*WAP TO GIVE THE BONUS TO AN
EMPLOYEE IF HE IS WORKING FROM MORE THAN 3 YEARS.*/
#include
#include
void main()
{
int j_yr,cr_yr,reslt;
clrscr();
printf("ENTER THE YEAR OF JOINING=");
scanf("%d",&j_yr);
printf("\n\n\nENTER THE CURRENT YEAR=");
scanf("%d",&cr_yr);
reslt=cr_yr-j_yr;
if(reslt>3)
printf("\n\nIT'S A PLEASURE FOR OUR COMPANY TO HAVE YOU!!!");
printf("\n\nYOU GAIN THE BONUS=Rs 2500");
getch();
}
/******OUTPUT******
ENTER THE YEAR OF JOINING=2000
ENTER THE CURRENT YEAR=2007
IT'S A PLEASURE FOR OUR COMPANY TO HAVE YOU!!!
YOU GAIN THE BONUS=Rs 2500
*/
No comments:
Post a Comment