Y by
Given
weights, each weighing
and another
weights with
each. Write a algorithm that determines the ways in which a scale can be balanced with a weight
on the left pan, and display the number of possible solutions. (The weights can be placed on both pans and the program starts with the numbers
. What will be displayed after three successive runs: 5,2,5,1,4 | 5,2,5,1,11 | 5,2,5,1,20?
One answer is possible:
a)10;5;0;
b)20;7;0;
c)20;7;1;
d)10;10;0;
e)10;7;0;
f)20;5;0,






One answer is possible:
a)10;5;0;
b)20;7;0;
c)20;7;1;
d)10;10;0;
e)10;7;0;
f)20;5;0,
This post has been edited 3 times. Last edited by MihaiT, Yesterday at 4:29 AM