Computer Science, asked by hasini77436, 6 months ago

Write a c -program to calculate the interest & commission

based on cost price & selling price of a product.​

Answers

Answered by mayur1994
1

Answer:

#include <stdio.h>

#include <stdlib.h>

int main()

{

float sales,salary;

while (sales!=-1){

printf("Enter sales in dollars (-1 to end): ");

scanf("%f",&sales);

if (sales==-1)

break;

salary=200+sales*0.09;

printf("Salary is: %.2f\n",salary);

}

return 0;

}

Similar questions