// call the library functions
#include<stdio.h>
#include<conio.h>
// call the main method of program from where the execution of program begin.
void main()
{
// define the variables
int bs, dra, hra,gs;
// call the print of function to print the statement
printf("Enter basic salary: ");
// call the scanf function to enter the basic salary
scanf("%d",&bs);
dra=0.4*bs;
hra=0.2*bs;
gs=bs+hra+dra;
// call the print of function to print the statement
printf("Gross salary will be: ");
printf("%d",gs);
getch();
}
Sample Output: