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?..

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?..

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

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

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***)

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

how can i prepare or CAT

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

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?

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?

previous rrb exams model papers with soulutions in telugu

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

wht is full form of EDLI

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.

Categories
• CAT (98)
• MAT (83)
• GMAT (34)
• OPENMAT (62)