Write a program to accept two numbers from the user and check whether the
numbers are amicable number or not (Amicable numbers are two different numbers so
related that the sum of the proper divisors of each is equal to the other number.
(A proper divisor of a number is a positive 'integer divisor other than the number
itself. For example, the proper divisors of 6 are 1, 2, and 3.) For example, the
smallest pair of amicable numbers is (220, 284); for the proper divisors of 220 are 1,
2, 4, 5, 10, 11, 20, 22, 44, 55 and 110, of which the sum is 284; and the proper
divisors of 284 are 1, 2, 4, 71, and 142, of which the sum is 220.
Answers
Answered by
4
dude can you tell me that
you want code in which language
then I will give you the syntax
Asif100010000:
java code
Similar questions