About Me

My photo
Raipur, Chhattisgarh, India
Hi , I am Amit Thakur. I have worked as a QA Engineer for two years and as a Java Developer for one year in NIHILENT TECHNOLOGIES PVT. LTD., Pune.Currently I am working as DEAN (Research & Development) in Bhilai Institute of Technology, Raipur.

Friday, August 30, 2013

C Program to calculate gross salary of a person.


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

void main()
{
int gross_salary,basic,da,ta;
clrscr();

printf("Enter basic salary : ");
scanf("%d",&basic);

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

gross_salary = basic + da + ta;

printf("Gross salary : %d",gross_salary);
getch();
}
Output :
Enter basic Salary : 1000
Gross Salart : 1220

No comments: