C program to check a pair of numbers are amicable numbers or not.


C program to check a pair of numbers are amicable or not.

Program Logic:

Amicable numbers are two different numbers so related that the sum of the proper divisors of each is equal to the other number.

 

Sample Input
Enter 1st no. :220
Enter 2nd no. :284
Sample Output
220 and 284 are Amicable Numbers

You may also like...