Write a c -program to calculate the interest & commission
based on cost price & selling price of a product.
Answers
Answered by
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