Computer Science, asked by skandhasatish17, 7 months ago

a shopkeeper sell two calculculator for same price he earns 20% profit on one and suffers a loss of 20% on the other write a program to find and display his total cost price of the calculators by taking their selling price as input

Answers

Answered by harshitha22279
1

Answer:

QBASIC program

'let A be one calculator

'let B be another calculator

'He sells the two calculators at same price.

'It is a profit of 20% in calculator A

'it is a loss of 20% in calculator B

DIM a AS INTEGER

DIM b AS INTEGER

INPUT "Please enter the selling price of calculator A and B "; a

b = a

PRINT "the cost price of calculator  is"; (a / 120) * 100

PRINT "the cost price of calculator B is"; (b / 80) * 100

Similar questions