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

How to Fight Overthinking or Negative Thoughts?

How to Combat Overthinking or Negative Thoughts? 1. Don’t Fight Your Thoughts Trying to suppress or control negative thoughts often backfire...