In this tutorial, we are going to write a C Program to find gross salary in C Programming with practical program code and step-by-step full complete explanation.

C Program to find gross salary

C Program to find gross salary

#include <stdio.h>
#include <conio.h>

void main()
	int gs,bs,da,ta;


	printf("Enter basic salary: ");

	da = (10*bs)/100;
	ta = (12*bs)/100;

	gs = bs+da+ta;

	printf("Gross salary = %d",gs);



Enter basic salary: 100
Gross salary = 122

Here in the above c program to find the gross salary, we first enter the user's basic salary and then calculate the da and ta using the basic salary. that is 10% and 12% of the basic salary. after that we are calculating the gross salary that is the sum of ta + da + bs. and then we are printing it on the screen.