Find the perfect numbers between a starting value and a finishing value entered by the users. Display the results to the screen. YOU MUST DESIGN YOUR SOLUTION WITH FUNCTIONS.
I've been told that I need to modify things under the void and the calcdiv in my main () but I can't seem to figure it out. It needs display the perfect numbers between the starting and finishing value. e.g. 28 and 429.
It's rather simple: this if (number % i == 0) tells you i is a divisor. Now you have to add them all including the number itself. Divided by 2 must be equal number
This calcdiv(i%number); is wrong. You need to provide the start and end value: