You are viewing a single comment's thread. Return to all comments →
def closestNumber(a, b, x): r=a**b r=int(r) s=r%x
if abs(s-x)<=s: return r+(x-s) elif r-s<1: return 0 else: return r-s
Seems like cookies are disabled on this browser, please enable them to open this website
Closest Number
You are viewing a single comment's thread. Return to all comments →
SHRIYAANSH KE PAPA KA CODE
def closestNumber(a, b, x): r=a**b r=int(r) s=r%x