by

Amicable Numbers Program

Amicable Numbers Program 6,2/10 6043reviews

I need a litlle help with this program. The input is a natural number and the output is all the amicalbe numbers that are smaller than this number. Here is the code I wrote. It doesn't give me any output. Appriciate your help.

Amicable Numbers Program

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. Perfect, amicable and sociable numbers (how to have fun summing up divisors) Contents. Introduction; Perfect numbers; Amicable numbers; Sociable numbers.

Thanks, Noam. Lone Ranger Movie. There are a couple of things wrong with your post: First: use code tags.

Don't know what code tags are? Read the sticky at the top of this page. Click where it says Sticky:GIDForums enables. Second: Format your code to make it readable and to emphasize where your control structures are (use indentation) Third: Tell what you get when you run your program.

Tell what input you used and what output you expected and what you got. One thing wrong with your program: You read a value for n, but then you use v in your loop.