File: ifact.bc

package info (click to toggle)
nickle 2.47-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,112 kB
  • ctags: 3,255
  • sloc: ansic: 30,401; yacc: 1,843; sh: 865; lex: 838; makefile: 202
file content (11 lines) | stat: -rw-r--r-- 113 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
define ifact(n) {
  auto f;
  f = 1;
  while(n >= 2) {
    f *= n;
    n -= 1;
  }
  return (f);
}

ifact(20000)