Computer Science, asked by 7935shreyanshpoddar, 1 month ago

write a program in QBASIC to take a input of the cost price and sell price o an article, calculate whether there will be a profit, a loss or no profit no loss. Print the message accordingly

Answers

Answered by simran5144
2

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)

Similar questions