Driver code
public static void Main ( ) { int SP , profit , loss ; SP = 1020 ; profit = 20 ; Console . WriteLine ( " Cost ▁ Price ▁ = ▁ " + CPwithProfit ( SP , profit ) ) ; SP = 900 ; loss = 10 ; Console . WriteLine ( " Cost ▁ Price ▁ = ▁ " + CPwithLoss ( SP , loss ) ) ; SP = 42039 ; profit = 8 ; Console . WriteLine ( " Cost ▁ Price ▁ = ▁ " + CPwithProfit ( SP , profit ) ) ; }