By: Prem Tiwari | Last Updated: | In: C Programming Tutorial
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 3 4 |
Enter basic Salary: 1000 Gross Salary is: 1220 |
Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies. View all posts by Prem Tiwari
Tags: c tutorials, gross salary calculator, how to figure out gross pay, how to find gross salary in c