Monday, October 26, 2020

If work experience is greater than 5 then bonus 50% otherwise 25%

 #include <stdio.h>

int main() 

{

    float s,e;

    printf("Enter salary & work experience:");

    scanf("%f %f",&s,&e);

    if(e>=5)

    {

        printf("Net Salary=%.2f",s*1.5);

    }

    else

    {

        printf("Net Salary=%.2f",s*1.25);

    }

}

No comments:

Post a Comment

Stop Saying “You’re Asking Me” — Say “We’re Discussing It” ❤️

Right. So um I just realized one thing that um I have been trying to implement in my life also that uh whenever I'm discussing something...