Saturday, October 24, 2020

If the work experience is more than 5 years then the bonus is 50%

 #include <stdio.h>

int main() {

    float we,s;

    printf("Enter Work Experience & Salary:");

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

    if(we>=5)

    {

        s=s*1.5;

    }

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

}

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...