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

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

Dear sir i need central bank of india clerical grade last three year question papers. Kindly forward to my email id sandeep.reddy0021@gmail.com

please send model question papers fo BANK PO EXAM QUESTION PAPERS

. ISRO has launched successfully ten satellites through PSLV-C9 on - 15th March,2008 30th March,2008 28th April,2008 4th May,2008

if cost price of 10 orange is equal to 1 kg of apple and cost price of 1 kg of apple is equal to 12 apple and sales price of 15 orange is equal to 1 kg of apple then sales price of 1 kg will be equal to how many apples

in 100m race, A beats B by 10m and B beats C by 20m.By how much distance A beats C.

The characters of the c program to receive input from and send to function, this function will check if the characters between letters a to z as y is the output characters to the main function and otherwise, return to the main function of the y characters.

what danger and problems are there in attemping to forge links between database kept by different business organizations?

I am applying for vizag steel plant management recruitment for 2009 please can anybody send me the pattern of the written test paper

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

Student of NIIT persuing BSC(IT), are eligible to take admission in management colleges through cat...

Categories