Computer Science, asked by himpriya2004, 21 days ago

Input number of pens, pencils and erasers and their rates. Calculate amount for each item. Calculate 5% discount on amount of pens, 3% discount on amount of pencils and 2% discount on amount of erasers. Calculate net amount of pens(amount of pens – discount of pens), net amount of pencils(amount of pencils – Discount of pencils) and net amount of erasers(amount of erasers – discount of erasers). Print amount of pens, discount of pens and net amount of pens. Print amount of pencils, discount of pencils and net amount of Pencils. Print amount of erasers, discount of erasers and net amount of erasers.​

Answers

Answered by azmathullahtakdeesa
1

Answer:

Given total cost of 5 pens and 10 pencil = Rs 30

5 pens + 10 pencils = 30

pens + 2 pencils = 1

also given pen cost 3 more than a pencil

i.e, pen = 3 + pencil.

pen - pencil = 3

pens + 2 pencils = 6

_______________

-3 pencils = -3

pencils = 1

pen - 1 = 3

pen = 4

cost of pencils = 1 cost of pen = 4

Similar questions