Friday, October 30, 2020

C program to calculate bonus

 #include <stdio.h>

int main() {

    float s,b;

    printf("Enter salary:");

    scanf("%f",&s);

    b=s*0.50;

    if(b<10000)

    {

        b=10000;

    }

    else if(b>25000)

    {

        b=25000;

    }

    printf("Bonus=%.2f",b);

}

No comments:

Post a Comment

The Power of a Genuine Compliment: A Small Kindness That Can Change Your Day 😊

  https://www.youtube.com/watch?v=i1gDGLY4kC8 Hi, namaste. Kamcho. So, uh I was just thinking like I was working now. It's almost going ...