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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is VDA & DA Full Form?

24139


Differentiate between pay grade and broading.

2700


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

1944


The stock investment and opening stock of a company are Rs. 500 and Rs. 1000. Calculate its closing stock

1178


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

1498






Bird is flying 120 km/hr between B to R. Two trains at B to R at 60 kmph. The distance traveled by the bird before it is killed?

2211


Hello friends, Can someone provide me a link to RS Aggarwal Verbal and Non Verbal reasoning book? Thanks,

2322


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

2086


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

2487


swami ramdas guru of shivaji,what is name of arm in hand ..?

2053


in whose name is the one rupee currency issued in india

1286


how to calculate the provision for doubtful debtors?

1889


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.

1364


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.

1966


who are the Sultan Mirzza

1965