1apple=5rs 20grapes=1rs 1banana=1rs no. Of fruits should be 100 and cost should be 100 how?




Answers were Sorted based on User's Feedback



1apple=5rs 20grapes=1rs 1banana=1rs no. Of fruits should be 100 and cost should be 100 how?..

Answer / sahilakhtar

cost of 1 apple =5 rupees

cost of 19 apples = 95 rupees.

cost of one banana = 1 rupees

cost of 20 grapes = 1 rupees.

cost of 80 grapes = 4 rupees

therefore, total items = 100

cost of all these items = 100 rupees.

Is This Answer Correct ?    15 Yes 5 No

1apple=5rs 20grapes=1rs 1banana=1rs no. Of fruits should be 100 and cost should be 100 how?..

Answer / jagadish

for i in range(0,20):
for j in range(0,5):
for k in range(0,100):
if i+j*20+k == 5*i + j +k==100:
print ("apples-{},grapes-{},banana-{}".format(i,j*20,k))


apples-19,grapes-80,banana-1

Is This Answer Correct ?    0 Yes 0 No

Post New Answer




More CAT Interview Questions

in whose name is the one rupee currency issued in india

0 Answers  


Barak Hussain Obama belongs to which politician parties?

2 Answers  


SIR/FRIENDS I HVAE GOT 24 MARKS IN MATH OF IBPS CLERK EXAM. THAT IS PASSING BORDER FOR MY CATEGORY.(TOTAL 135/250). IF INTERVIEWER ASKED ME "U R ON THE BORDER OF THIS PASSING MARK " . WHAT SHOULD I SAY TO INTERVIEWER . GIVE ME PERFECT SUGGESTION AND ANS ON MY E-MAIL ID.

0 Answers   IBPS,


the biggest desert in the word is the

1 Answers  


A software engineer can code on following terms , He would take 5 minutes to think 100 lines & 10 minutes to code these 100 lines. And after every 10 minutes he would take a break of 5 minutes. Find out the total numbers lines coded in 60 minutes.

3 Answers  






The HCF of two nos. is 12 and their LCM is 168. If the sum of these two nos is 108, then their difference is: 1) 36, 2) 48, 3) 60, 4) 72.

2 Answers  


plz vote here for ssc cgl tier 2 2011 cutt off marks http://ssccgl.blogspot.com/

1 Answers  


what would be 50% of 10% of 25% of 40% of 60% of 2000?

5 Answers   Ignou,


kvb bank po model qustion paper send to me

1 Answers   Karur Vysya Bank KVB,


who is the first president of india

4 Answers  


Write a c programme to find the product of elements in one dimensionl array?

0 Answers  


a black hole is a body in the space which does not allow any radiation to come out. this is due to its

1 Answers  






Categories