To accept cost price and selling price and display only profit or loss.



Answer: -
Step 1: Start
Step 2: Accept cost price and store in CP
Step 3: Accept selling price and store in SP
Step 4: SP greater than CP
            If Yes: Display “Profit”
            If No: Display “Loss”
Step 5: End

Comments

Post a Comment

Popular posts from this blog

To accept marks of five subject and display pass or fail ( if pass display Percentage too).

To accept two numbers and display their sum, product, difference, division.