[Solved] why is this c program not giving me the output i want? [closed]


Your code should be :

#include <stdio.h>

int main()
{
    int r,sales;

    printf("Enter sales in dollars : ");
    scanf(" %d", &sales);

    r = sales * 9 / 100+200;

    printf("Salary is %d", r);

    return 0;
}

You must first get the value of sales before adding it to a formula.

5

solved why is this c program not giving me the output i want? [closed]