Get best answers to any doubt/query/question related to programming , jobs, gate, internships and tech-companies. Feel free to ask a question and you will receive the best advice/suggestion related to anything you ask about software-engineering , development and programming problems .

0 like 0 dislike
3,439 views
in Online Assessments by Expert (32,020 points)

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)
by (140 points)
0 like 0 dislike
by Expert (32,020 points)
...