fork download
  1.  
  2. public class Main{
  3. public static void main(String [] args){
  4. int N = 100;
  5.  
  6. while(N % 2 ==0)
  7. N/=2;
  8.  
  9. if(N== 1 )
  10. System.out.println(true);
  11. else
  12. System.out.println(false);
  13. }
  14. }
Success #stdin #stdout 0.07s 54560KB
stdin
Standard input is empty
stdout
false