Java program amicable numbers

Java program amicable numbers


Output:

Enter two numbers to check they are amicable or not:
220
284
220 and 284 are amicable numbers

Implementation: