write an algorithm to find profit or loss.please do it in a notebook
Answers
Answered by
2
Explanation:
hope it helps.............
Attachments:
Answered by
19
Answer:
sample input=cost price and selling price
expected output= display profit,loss and no profit no loss
step1-start
step2-read cost price cp
step3-read selling price sp
step4-if cp<sp print profit as sp-cp
step5-if sp<cp print loss as cp-sp
step6-if cp=sp print no profit no loss
step7-end
Explanation:
there are 3 condition here and all are taken to consideration.
regards akash
it may help you❤️
Similar questions