If you had to do it yourself, how would you figure out what the answer would be?
If you had to do it yourself, how would you figure out what the answer would be?
So if I gave it 2 and 3 the program would give me 6?
That's not a C problem, that's an algebra problem.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
I'll type something up here, as I would guess even if your account goes away you'll still be able to read this. (Not a promise, or a threat, just a prediction.)
I don't think I, or anyone here, can think for you -- that's something you are going to have to do for yourself. (Some people think "think" is a scary word and like to call it "problem solving ability" or whatever.) But really: if I gave you the list 2, 3, 4, 6, 8, 12 could you get to the answer 24? If I gave you 3, 5, 15, 25 what number should you give me back? What if I gave you the list 7?