You are viewing a single comment's thread. Return to all comments →
n, k = map(int, input().split()) x = n * k % 9 print(x if x else 9)
More Python solutions here.
Seems like cookies are disabled on this browser, please enable them to open this website
Recursive Digit Sum
You are viewing a single comment's thread. Return to all comments →
More Python solutions here.