0 like 0 dislike
188 views
in Online Assessments by Expert (33,250 points) | 188 views

2 Answers

0 like 0 dislike
n=int(input( ))
m=int(input( ))
a=0
if (n>0 and m>0):
    p=n*m
    s=n+m
    d=p-s
    for i in range (1,d+1):
         if (d%i==0):
              a=a+i
print(a)
ago by (140 points)
0 like 0 dislike
by Expert (33,250 points)