File: ifact.5c

package info (click to toggle)
nickle 2.107
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 3,756 kB
  • sloc: ansic: 27,954; yacc: 1,874; lex: 954; sh: 204; makefile: 13; lisp: 1
file content (10 lines) | stat: -rw-r--r-- 112 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
int function ifact(int n) {
  int f = 1;
  while(n >= 2) {
    f *= n;
    --n;
  }
  return f;
}

ifact(20000)