you are given a bag of balls which consists of 3 colours (red, green and blue) . write a C program to arrange the balls such that (Red, green,blue)
Answers
Answered by
2
Answer:
There are 1212 balls in a bag. 33 of them are red, 44 of them are green, and 55 of them are blue. We randomly take out 33 balls from the bag at the same time. What is the probability that all three balls are of the same colour?
My answer: (3/12)3+(4/12)3+(5/12)3(3/12)3+(4/12)3+(5/12)3. Is this correct?
EDIT: My explanation is that since there are the odds of getting a red ball are 3/12, I simply multiplied it 3 times since I consider multiplication to be the "and" operator. Similarly, I consider addition to be the "or" operator. So, the way I think of it is:
(1 red and 1 red and 1 red) or (1 green and 1 green and 1 green) or (1 blue and 1 blue and 1 blue).
Similar questions