Find gross salary in C by R4R Team

Here we want to find the gross salary.

What we need:
we need basic salary to compute gross salary.

program-

#include< stdio.h>
int main() {
int gross-salary, basic, d_a, t_a;
printf("Enter basic salary : \n");
scanf("%d", &basic);
d_a = (10 * basic) / 100;
t_a = (12 * basic) / 100;
gross-salary = basic + d_a + t_a;
printf("Gross salary is: %d", gross-salary);
return (0);
}


output-

Enter basic salary
1000
Gross salary is:1220




Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!