File: fact.b

package info (click to toggle)
bc 1.07.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,512 kB
  • sloc: ansic: 7,601; sh: 1,468; yacc: 1,110; lex: 342; makefile: 90
file content (10 lines) | stat: -rw-r--r-- 121 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
define f (x) {

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

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