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
Hi frnds, can u suggest me good institutes in vizag for GROUP1?
SIR/FRIENDS I HVAE GOT 24 MARKS IN MATH OF IBPS CLERK EXAM. THAT IS PASSING BORDER FOR MY CATEGORY.(TOTAL 135/250). IF INTERVIEWER ASKED ME "U R ON THE BORDER OF THIS PASSING MARK " . WHAT SHOULD I SAY TO INTERVIEWER . GIVE ME PERFECT SUGGESTION AND ANS ON MY E-MAIL ID.
would you provide me the answer of the previous year question of the year 2012 of Assistant Provident fund commissioner
what is democratic right
swami ramdas guru of shivaji,what is name of arm in hand ..?
all cat related question
which economic plan of india has the objective to achieve "growth with equity".
Write a c programme to find the product of elements in one dimensionl array?
Find the least number which when divided by 12,16 and 36 leaves remainder 7 in each case
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.
What are your suggestions for making workers participation more affective in an IT industry?
wrong number in series is 1,6,33,165,740,2970,10395
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?
in whose name is the one rupee currency issued in india
how to calculate the provision for doubtful debtors?