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 ?    19 Yes 8 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 ?    1 Yes 2 No

Post New Answer

More CAT Interview Questions

in whose name is the one rupee currency issued in india

1 Answers  


which economic plan of india has the objective to achieve "growth with equity".

1 Answers  


In a rectangle the length is increased by of the original length . By what proportion should the width be reduced so that the area will be the same?

3 Answers   Hexaware, L&T, RAW,


Find the smallest number which when divided by 5,6,8 leaves remainder 2?

5 Answers   TCS,


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  


number which when divide by 49 leave 32 as the reminder and number divide by 7 what was the remainder

1 Answers   Bharat Gears,


complete the given series: o,t,t,f,f,s,s,_,_,t

2 Answers  


find the common ration of 2:3 and 4:5 ?

1 Answers  


Find the least number which when divided by 25, 40 and 60, leaves the remainder 7 in each case

11 Answers  


Multiply all the integers from -4 to +4. The product obtained is

3 Answers   Ignou, Oil India,


Imagine that ten years from now a colleague is describing you to a new employee. What will s/he say about you that you are not known for now? How will you achieve these new skills?

0 Answers   Atos Origin,


how will you manage liquid assets effectively?

1 Answers   Reliance,


Categories