Name: Anonymous 2011-11-17 15:08
Make a program that reads and writes a positive value in the decomposition of sums of powers of 2, in descending order. Consider that the reading is less than 2 ^ 31.
is not allowed to use methods of the Arrays class of java.lang package and Math.
example:
Value? 45
45 = 2 ^ 5 + 2 ^ 3 + 2 ^ 2 + 2 ^ 0
any ideas or tips? rly need this bros
programming on eclipse
is not allowed to use methods of the Arrays class of java.lang package and Math.
example:
Value? 45
45 = 2 ^ 5 + 2 ^ 3 + 2 ^ 2 + 2 ^ 0
any ideas or tips? rly need this bros
programming on eclipse