Math, asked by 111meet111, 7 months ago

Find the cost price. Selling price is 523.5 and the profit is 15 %

Answers

Answered by BrainlySon12
0

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;

Answered by palwindersaini961
4

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

Attachments:
Similar questions