Monday, October 26, 2020

if grade is A then salary is double otherwise 50% bonus

 #include <stdio.h>

int main() 

{

    float s;

    char g;

    printf("Enter salary & grade:");

    scanf("%f %c",&s,&g);

    if(g=='A')

    {

        s=s*2;

    }

    else

    {

        s=s*1.5;

    }

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

}

No comments:

Post a Comment

2019 wasn’t just a year—it was a whole era.From lectures to late nights, chaos to clarity… every frame built a story I’m still living ✨

Video Link The video contains snaps from 2019 throwback ones when i was doing my masters studies from university of surrey, guildford, londo...