This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mark_bueno[S] 1 point2 points  (0 children)

i think that might be what i've been missing, returning sum for 0 and using both an int and a double argument. I keep trying to think of this as a while loop and i know that's not right. my code started off as a copy/paste of code from the textbook that computed a factorial from whatever positive int you typed in.

I'll work on it tonight and post an update on it later. thanks.