C Program To Calculate Gross Salary Of A Person

C Program To Calculate Gross Salary Of A Person

#include<stdio.h>

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

   printf("Enter basic salary :\n");
   scanf("%d", &basic);   //input from user

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

   gross_salary = basic + da + ta;   //add all to calculate gross salary

   printf("Gross salary : %d\n", gross_salary);   //Print Output On screen

}
Copyright © C Program | Java | OpenGL Programming | Hadoop at Computaholics