C Numbers 24: Check if two numbers are Amicable Numbers [C Programming]

preview_player
Показать описание
Write a program in C to check if two numbers are Amicable Numbers or not.

Expected Output :
Input the 1st number : 1184
Input the 2nd number : 1210
The given numbers are an Amicable pair.

========================================================

Amicable Numbers

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

For example, the smallest pair of amicable numbers is (220, 284); 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.

=================================================

Рекомендации по теме
Комментарии
Автор

Is tarah se hi dekna ho to Google pr check kr lege proper samjha k bolo video dek rhe hai book ni read kr rhe

ashishprajapati