Computer Science, asked by singhyuvraj185, 1 year ago

How to check if two numbers (m,n) are amicable or not using Python?

Answers

Answered by deepanshuallahpb0mal
0

Python Program to Check If Two Numbers are Amicable Numbers :

1. Take in both the integers and store it in separate variables.

2. Find the sum of the proper divisors of both the numbers.

3. Check if the sum of the proper divisors is equal to the opposite numbers.

4. If they are equal, they are amicable numbers.

5. Print the final result.

6. Exit.

Similar questions