Driver code
$ SP = 1020 ; $ profit = 20 ; echo ( " Cost ▁ Price ▁ = ▁ " ) ; echo ( CPwithProfit ( $ SP , $ profit ) ) ; echo ( " STRNEWLINE " ) ; $ SP = 900 ; $ loss = 10 ; echo ( " Cost ▁ Price ▁ = ▁ " ) ; echo ( CPwithLoss ( $ SP , $ loss ) ) ; echo ( " STRNEWLINE " ) ; $ SP = 42039 ; $ profit = 8 ; echo ( " Cost ▁ Price ▁ = ▁ " ) ; echo ( CPwithProfit ( $ SP , $ profit ) ) ; echo ( " STRNEWLINE " ) ; ? >