the factorio of an integer is the product of all integers upto and including that integer except that the factorio of 0 is 1 evaluate the factorio of an integer less than 20 for fuve numbers input successfully via the keyboard
Start
for i =0 to 5 Step 1 do
Declare Variable n, fact, i
Read number from User
Initialize Variable fact=1 and i=1
Repeat Until i<=number
fact=fact*i
i=i+1
End Repeat Until
Print fact
end for
Stop
Comments
Leave a comment