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 ?    16 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 ?    1 Yes 0 No

Post New Answer




More CAT Interview Questions

write a progrram in c find out gretest num among five num without using if else statement ,switch case,nd control statement

0 Answers  


Abhays age after three years will be three-seventh of his fathers age . ten years ago ,the ratio of their ages was 1:5 . what is Abhays fathers age at present ?(*** plz give explanation also***)

5 Answers   CAT,


in a year once,in a month two,in a week four, in a day six times?

0 Answers  


how can i prepare or CAT

0 Answers  


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

0 Answers  






Differentiate between pay grade and broading.

0 Answers  


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,


what MBA exam i should appear in after doing graduation of bachelors of computer applicaions? and what other master's degree options are available after doing BCA?

1 Answers  


previous rrb exams model papers with soulutions in telugu

4 Answers   RRB, HTC,


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

1 Answers  


wht is full form of EDLI

1 Answers   NIIT,


A father has three daughters find out the age of three daughters ? 1-the product of their age is 36. 2-the sum of their age is equal to your house number . 3-my eldest daughter has green eyes.

0 Answers  






Categories