Program to find gross salary

C Programming Language / Overview of C Language

1241

Program:

/* Program to find gross salary
  Author: Atnyla Developer */

#include"stdio.h"
#include"conio.h"
void main()
{
int gs,bs,da,ta;
 
 printf("enter basic salary: ");
 scanf("%d",&bs);
 
 da=(10*bs)/100;
 ta=(12*bs)/100;
 
 gs=bs+da+ta;
 
 printf("gross salary=%d \n",gs);
 getch();
}

Output:

enter basic salary: 12000
gross salary=14640
Press any key to continue . . .

Explanation:

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

This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.