#include<conio.h>
#include<stdio.h>
int main()
{
float cost, sale, costitem, profit;
printf("Please enter total selling price of 15 items:
");
scanf("%f",&sale);
printf("\nNow enter total profit on 15 items: ");
scanf("%f",&profit);
//Calculations
cost =
sale - profit;
costitem
= cost / 15;
printf("\nCost price per item: %f",costitem);
getche();
}
Thankyou otherwise I would have added sale and profit in paper.
ReplyDelete