Saturday, October 24, 2020

If the grade is A then double the salary (c program)

 #include <stdio.h>

int main() {

    float s;

    char g;

    printf("Enter salary and grade:");

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

    if(g=='A')

    {

        s=s*2;

    }

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

}

No comments:

Post a Comment

POV: I finally understood why every elder brother is a hero ❤️

YouTube Video  Hi. So, uh very happy brother's day to all the lovely brothers out there who has been endlessly working on and uh taking ...