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 percentage.

To accept marks of five subject and display total marks obtain.

To accept marks of five subject and display average marks obtain.