0

can anyone come up with a solution for this ? real quick for me?

the factorial of a nonnegative integer n is written n! ("n factorial") and is defined as follows: n!=n*(n-1)*(n-2)*.....*1(for values of n greater than to 1)

and n!=1 (for n=0 or n=1).

For example, 5!=5*4*3*2*1, which is 120. Use a while structure for the following..write a program that reads a nonnegative integer and computes and prints its factorial.

If anyone could this for me thanks.