num=num/2;//number is divided by 2 everytime..untill number become 0...//
//& if in any case ...num%2 leaves any remainder in the mid before making 0..then it will go into else ....prints no. isnot power of 2....& goto OUT...FROM LOOP..//BUT IF NUMBER GENERATING REMAINDER 0 UNTILL IT IS DIVIDING %2 &UNTILL NUM BECOMES 1/////THEN NO. IS POWER OF 2//
}
else
{
printf("num=%d\n",num);
printf("no. is not pow of 2\n");
goto OUT;
}
}
printf("num=%d\n",num);//PRINT NO. OUT OF LOOP...AFTER PASSING ALL OF WHILE LOOP EXAMINATIONS...NO IS SAID TO BE POWER OF 2...//