summaryrefslogtreecommitdiff
path: root/Test/fact.b
blob: 995a26d74b69c0cb2f17cb5fd03ffea2fd165aba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
define f (x) {

  if (x<=1) return(1)
  return (f(x-1)*x)
}

for (a=1; a<600; a++) b=f(a)
"
"
"b=";b
quit