Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- do{
- printf("Years of service : \n ");//input years of service
- gotoxy(20,2);
- scanf("%i",&yearsofservice);
- if(yearsofservice>15){
- restart=0;
- printf("\nServed for more than 15 years");
- printf("\nTotal annual leave per year = %i days",totalannualleave=annualleave+15);
- }else if(yearsofservice>6&&yearsofservice<15){
- restart=0;
- printf("\nServed for more than 6 years but less than 15 years");
- printf("\nTotal annual leave per year = %i days",totalannualleave=annualleave+10);
- }else if(yearsofservice<6){
- restart=0;
- printf("\nServed for less than 6 years");
- printf("\nTotal annual leave per year = %i days",totalannualleave=annualleave);
- }else{
- printf("\nThere has typing error");
- restart=1;
- gotoxy(20,2);
- }
- }while(restart==1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement