check the result for true / false and print .
Console . WriteLine ( isPower ( 10 , 1 ) ? 1 : 0 ) ; Console . WriteLine ( isPower ( 1 , 20 ) ? 1 : 0 ) ; Console . WriteLine ( isPower ( 2 , 128 ) ? 1 : 0 ) ; Console . WriteLine ( isPower ( 2 , 30 ) ? 1 : 0 ) ; } }