No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[INLINECODE]I am trying to develop a program that reads a list of integers from a file and outputs whether or not each integer in the file is perfect. Its suppose to give practice using endfile-controlled and for loops. The input file of numbers i have created are : 456 18 … | |
[INLINECODE] I am having a problem trying to write a program that gets numbers from a selected file and returns each numbers sum of its perfect divisors. Could anyone give me a few pointers??[/INLINECODE] [CODE]#include <stdio.h> /* define fopen,fclose,fscanf,fprintf, EOF */ int sum_of_divisors(int num); /* pre: Accepts the integer */ … |