Computer Science, asked by hasacta, 5 months ago

Write a program to accept quantity of pen

and price per pen find total amount if total

amount exceed 1000 give 5% discount.​

Answers

Answered by PRASENJITGAMER
1

Answer:

Given total cost of 5 pens and 10 pencil = Rs 305 pens + 10 pencils = 30pens + 2 pencils = 1also given pen cost 3 more than a pencili.e, pen = 3 + pencil.pen .

Answered by princeuplucky123449
1

Answer:

plz follow me plz

Explanation:

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