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

Self-Respect vs. Ego ❤️ | Learning When to Give, Let Go & Choose Solitude ✨

  https://youtube.com/shorts/1GJpFnKyU88 So, I think I learned the difference between the self-respect and the ego in terms of making effort...