Given an n-digit large number in form of string, check whether it is divisible by 7 or not.
The first line consists of an integer T i.e number of test cases. The first and only line of each test case consists of string s.
If s is divisible by 7 then print "1" otherwise print "0".
1<=|Length of string|<=104
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.