AIM:-Write Program For Find Gross Salary Using Programming c.

 

Input:-

 

#include<stdio.h>

int main()

{

    float basic,gross;

    printf(“************ PAY SLIP ***********”);

    printf (“Enter Your Salary :  );

    scanf(“%f”,&basic);

    

    gross = ((basic) + (basic*0.10) +(basic*.75) + (300) – (basic*.125));

             printf(“Your Gross Salary = %f”,gross);

             

             return 0;

             

             }

Output:-

************ PAY SLIP ***********Enter Your Salary :  5000

Your Gross Salary = 8925.000000

Advertisements