I am trying to solve a problem without recursion and loop.
Problem is to check if the entered number is equal to 2^x where x is positive integer.
It is working fine except for a number 536870912.
I was expecting to get true printed but false gets printed.
New contributor
surendra ratre is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1