Thursday, 18 August 2016
Calculate the gross salary
#include < stdio.h >
void main()
{
int gross_salary, basic, da, ta;
printf("Enter basic salary : ");
scanf("%d", &basic);
da = (10 * basic)/100;
ta = (12 * basic)/100;
gross_salary = basic + da + ta;
printf("\nGross salary : %d",gross_salary);
}
Subscribe to:
Post Comments
(Atom)
0 comments:
Post a Comment