--------------------------------------INPUT XY = 1
WHILE ( X > 1) Y = X * Y X = X - 1
OUTPUT Y-------------------------------It is also possible to complete this task using recursion
DEF fact(n): IF (n > 1): RETURN (n*fact(n-1)) ELSE RETURN 1