Find gross salary.

 Program to find gross salary.
#include<stdio.h>
#include<conio.h>
void main()
{
int gs,bs,da,ta;
clrscr();
printf(“enter basic salary: ”);
scanf(“%d”,&bs);
da=(10*bs)/100;
ta=(12*bs)/100;
gs=bs+da+ta;
printf(“gross salary=%d”,gs);
getch();
}
Output:
enter basic salary: 100
gross salary=122

No comments:

Post a Comment