BETA

School Problem's Submission isn't counted in score!

Total Submissions: 1975 Accuracy:

32.96%

Power of Four (Function Problem)
     

Given a number N, check if N is power of 4 or not.

Input:

You have to complete the method which takes 1 argument: the number N  .You should not read any input from stdin/console. There are multiple test cases. For each test case, this method will be called individually.

Output:
Your function should return 1 if N is power of 4, else return 0.

Constraints:
1<=T<=50
1<=N<=100000000

Example:

Input:
2
64
75

Output:
1
0

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Amit Khandelwal


					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.