the program does not yield proper result, cos long int is
used and then only "%d", instead just use "%ld" like i did
long int bs,da,hra,pf;
printf("\nEnter The Basic Salary of Employee: ");
printf("\nDA : %ld",da=bs*30/100);
printf("\nHRA : %ld",hra=bs*25/100);
printf("\nPF : %ld",pf=bs*30/100);
printf("\nNet Salary: %ld",da+hra+pf);
IF UR BASIC SALARY 5000 RS.
NET SALARY= 9250 RS.
THIS IS MY CORRECT ANSWER
My question is that, my salary is Rs. 12,000/-. In my
salary, How can calculate the Basic, DA, HRA and other
conveyance allowancs. This is for the PF. Please send the
detaisl and examples to me at the earleist. Hope for the