Playing with bits


giving no output .Please correct the code

@Yukta
Hello Yukta,
you are modiying i inside while loop which u should not do.to rectify this error first store i in some variable say j and then do all ur operation on j without modifying i.

@Yukta
here is ur modified code-https://ide.codingblocks.com/s/180646