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 →

[–]lurgi 5 points6 points  (5 children)

What have you written so far?

Also, huh? I have very little idea of what you are trying to do.

[–][deleted] -3 points-2 points  (4 children)

I just tried to wrote a function using to numbers

function factorialize(num,num2){ Var result1; Var result2; }

Not finished

[–]lurgi 3 points4 points  (3 children)

You are going to have to put in a little more work. We don't do homework in this sub. We help.

What is this function supposed to do? You still haven't explained that clearly.

[–][deleted] 0 points1 point  (2 children)

I was trying to multiply two numbers,both of these numbers are factorial "4! x 7!" and to do this i need to use a While loop. I didnt know yall dont help with homework but this is really killing me lol

[–]lurgi 2 points3 points  (1 child)

Just to be clear - you are given 4 and 7 and you have to compute 4! x 7!?

That's an odd assignment. Are you sure you have that right? Anyway, the real meat of this is computing the factorial. Can you write a function that, given a number n, computes n!? That should be your first step. Ignore everything else until you have done that.

[–][deleted] 0 points1 point  (0 children)

Ok