Social Sciences, asked by dishakhan9221, 4 months ago

Write a program to calculate profit and lose . The program should accept Lost price and sale price of an item.


it is very important.
please help me.
correct answer should be given brainlist.​

Answers

Answered by sngd008
3

Answer:

Program to calculate Profit Or Loss

Given the Cost Price(CP) and Selling Price(SP) of a product. The task is to Calculate the Profit or Loss.

Examples:

Input: CP = 1500, SP = 2000

Output: 500 Profit

Input: CP = 3125, SP = 1125

Output: 2000 Loss

Formula:

Profit = (Selling Price - Cost Price)

Loss = (Cost Price - Selling Price)

Answered by sanjanaguptacute
0

Explanation:

Given the Cost Price(CP) and Selling Price(SP) of a product. The task is to Calculate the Profit or Loss.

Examples:

Input: CP = 1500, SP = 2000

Output: 500 Profit

Input: CP = 3125, SP = 1125

Output: 2000 Loss

Formula:

Profit = (Selling Price - Cost Price)

Loss = (Cost Price - Selling Price)

Similar questions