Below program will find the gross salary of any entered basic salary of any person.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #include<stdio .h> int 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 is: %d", gross_salary); return (0); } |
Below is the output of above program. Above program will Calculate Gross Salary of a Person.
1 2 | Enter basic Salary: 1000 Gross Salary is: 1220 |
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.
Article Tags: c tutorials, gross salary calculator, how to figure out gross pay, how to find gross salary in c