Gross Salary Example|| Basic Program Of C

 include<stdio.h>

int main()
{
	int gs,bs,da,ta;
	// gs=Gross salary,bs=Basic salary,da=Dearness allowance,ta=Total allowance
	printf("Enter the Basic salary:");
	scanf("%d",&bs);
	da=(10*bs)/100;
	ta=(12*bs)/100;
	gs=bs+da+ta;
	printf("Gross salary=%d\n",gs);
	return 0;
}

Post a Comment

0 Comments