Directions:

Define x=12, Start with some value of factorial say Fact=1; – while loop condition will be x > 1 – compute factorial by multiplying the number with Fact – Reduce number by 1 – Close the while loop – Display the Fact

This is what I have so far (it is incorrect):

x=12;

while x>1

fact = x*(x-1);

x=x-1

end

disp(fact);

## Best Answer