Pergunta de entrevista da empresa eMoney Advisor

Write a program to take an integer and print whether or not it is a power of two.