Question:A number n>0 is called cube-powerful if it is equal to the sum of the cubes of
Fantastic news! We've Found the answer you've been seeking!
Question:
Question:A number n>0 is called cube-powerful if it is equal to the sum of the cubes of its digits. Write a function named isCubePowerful that returns 1 if its argument is cube-powerful; otherwise it returns 0.
E.g. If n is 153 then the function returns 1 because 153=1^3+5^3+3^3
If n is 370 then the function returns 1 because 370=3^3+7^3+0^3
If n is 87 the the function returns 0 because 87!=8^3+7^3
(need c programming code)
Related Book For
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi
Posted Date: