C Program to calculate gross salary of a person.

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

Share this

Related Posts

Previous
Next Post »

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer