How to check if two numbers (m,n) are amicable or not using Python?
Answers
Answered by
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
English,
6 months ago
Math,
6 months ago
English,
6 months ago
Computer Science,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago