Given a number (n) , the task is to find if its divisible by 11 or not.
Input : n = 76945 Output : 1 Input : n = 1234567589333892 Output : 1 Input : n = 363588395960667043875487 Output : 0
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 numer x.
For each test case in a new line print 1 if n is divisible by 11 else print 0.
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.