Computer Science, asked by tesvinny1106, 1 year ago

write a program in qbasic.one pen cost 5 rs.how much pen can we buy from rs 100

Answers

Answered by qwtiger
7

Answer:

The problem is to find the number of pens we can buy from rs 100 if the cost of one pen is 5 rs.

It is a simple mathematical problem where,

in 5rs we can get 1 pen

in 1 rs we can get 1/5 pen

in 100 rs we can get  1/5*100= 20 pens

Below is the code:

CLS

Input " Enter the cost of one pen"; P

I = (1/P)*100

Print " The number of pen we can by from rs 100 is  = ";I

End

Answered by prathimab85
1

Explanation:

if anyone inboxes me I will follow them and thank their 50 answers.

Attachments:
Similar questions