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 ; }