Skip to content

Commit 09266ee

Browse files
authoredOct 15, 2023
Amicablenum
1 parent 52d62ac commit 09266ee

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
 

‎Amicablenum

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
x=int(input("enter number1:"))
2+
y=int(input("enter number2:"))
3+
sum1=0
4+
sum2=0
5+
for i in range (1,x):
6+
if (x%i==0):
7+
sum1+=i
8+
for j in range (1,y):
9+
if (y%i==0):
10+
sum2+=j
11+
if(sum1==y and sum2==x):
12+
print("number are amicable")
13+
else:
14+
print("numbers are amicable")

0 commit comments

Comments
 (0)
Please sign in to comment.