Find the cost price. Selling price is 523.5 and the profit is 15 %
Answers
Step-by-step explanation:
// C++ implementation to find Cost price
#include <iostream>
using namespace std;
// Function to calculate cost price with profit
float CPwithProfit(int sellingPrice, int profit)
{
float costPrice;
// required formula to calculate CP with profit
costPrice = (sellingPrice * 100.0) / (100 + profit);
return costPrice;
}
// Function to calculate cost price with loss
float CPwithLoss(int sellingPrice, int loss)
{
float costPrice;
// required formula to calculate CP with loss
costPrice = (sellingPrice * 100.0) / (100 - loss);
return costPrice;
}
// Driver code
int main()
{
int SP, profit, loss;
SP = 1020;
profit = 20;
cout << "Cost Price = " << CPwithProfit(SP, profit) << endl;
SP = 900;
loss = 10;
cout << "Cost Price = " << CPwithLoss(SP, loss) << endl;
SP = 42039;
profit = 8;
cout << "Cost Price = " << CPwithProfit(SP, profit) << endl;
return 0;
Answer:
Rupees 455.21
Given
selling price is rupees 523.5
profit percentage is 15%
Solution
solution was in the above attachment
Hope it helps u
please mark my answer as a brain list