Check if divisible by 36
Submissions: 2057   Accuracy:

29.06%

  Difficulty: Basic   Marks: 1

Given a number (n) , the task is to find if its divisible by 36 or not. 

Examples:

Input : 72 
Output : 1 

Input : 244 
Output : 0 


Input:
The first line of input contains an  integer T denoting the no of test cases. Then T test cases follow. Each test case contains an number x.

Output:
For each test case in a new line print 1 if n is divisible by 36 else print 0.

Constraints:
1<=T<=100
1<=N<=10^1000+5

Example:
Input:

2
72
244
Output:
1
0

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

Author: Shubham Joshi 1


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



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


to report an issue on this page.