Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~550 People Reached
Favorite Forums
Favorite Tags
c x 7
Member Avatar for ndfi54

I am writing a program to get a multidimensional array from the user and than find out which of the elements in the array are larger than their "neighbors". Something just isn't working out though and I could use some help. [CODE]/*Library Inclusions*/ #include <stdio.h> #include "genlib.h" #include "simpio.h" /*Constants*/ …

0
72
Member Avatar for ndfi54

I am working on a program to rewrite an assortment of integers in increasing order yet they are in decreasing order. I am pretty sure the problem is in my indexMax or sortArray functions but I cant find it. Can anyone help? [CODE]#include <stdio.h> #include "genlib.h" #include "simpio.h" #define size …

Member Avatar for poliet
0
157
Member Avatar for ndfi54

My IsPerfect function aint working and I dont no where i went wrong. [CODE]bool IsPerfect(int num) { int sum = 0; int x; int divisor; x = num; while(x > 0) { divisor = x; if(num % divisor == 0) { sum += divisor; } x--; } if(sum == num) …

Member Avatar for John A
0
80
Member Avatar for ndfi54

Im trying to write a program to print all the primes from 1 to 100. I am however required to use a boolean function. My problem is that all the odd #s except 1 also appear in the output. [code] #include "stdafx.h" #include <stdio.h> #include "strlib.h" #include "genlib.h" #include "random.h" …

Member Avatar for ndfi54
0
241