Computer Science, asked by shubhammantri780, 8 months ago

QBASIC program to calculate and display the total price of 100pens if a pen cost rs.20

Answers

Answered by SonalRamteke
7

Answer:

Brainly.in

What is your question?

tesvinny1106

08.07.2019

Computer Science

Secondary School

+5 pts

Answered

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

1

SEE ANSWER

ADD ANSWER

Answers

tesvinny1106 is waiting for your help.

Add your answer and earn points.

QwtigerSamaritan

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 Anonymous
0

Answer:

brainly.in write right questions.....,,,;;'

Similar questions