Files
matlab-learning/lab4/factor.m
2025-11-26 19:01:27 +08:00

6 lines
67 B
Mathematica

function f=factor(n)
if n<=1
f=1;
else
f=factor(n-1)*n;
end