Program:
#include<stdio.h>
#include<conio.h>
int main()
{
//taking variable
int BS,HR,BA,GS;
//writting console message
printf("Enter the value of BS");
//Enter basic salary through keyboard
scanf("%d",&BS);
//calculating HR, BA, GS as follow:
HR=BS*4;
BA=BS*2;
GS=BS+HR+BA;
//printing values
printf("the value of HR, BA & GS= %d %d
%d", HR, BA, GS);
getch();
}