Power ologn question


my code is not producing any output what is the problem

Hi @royprincejmp
Your while loop is running into an infinite loop as you are just using p>>1. Instead you have to assign new value to p that is
p = p>>1 ;