Program to compute gross salary, basic salary is entered by user and gross salary is sum of basic salary, HRA(30% of basic), and TA(10% of basic).

 #include <stdio.h>


int main()

{

    float basicsalary,grosssalary,hra,ta;

    printf("enter the value of basicsalary");

    scanf("%f",&basicsalary);

    hra=(30*basicsalary)/100;

    ta=(10*basicsalary)/100;

    grosssalary=basicsalary+hra+ta;

    printf("the value of grosssalary is %.2f",grosssalary);


    return 0;

}

No comments:

Post a Comment

Programming in C Language

  PROGRAM LIST TO BECOME PRO IN C    😍😍😍            PRACTICE SETS                                                        UNIT -1  👇   IN...