File: fib

package info (click to toggle)
missinglib 0.4.10.debian-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 504 kB
  • ctags: 329
  • sloc: ml: 1,726; sh: 233; makefile: 163
file content (7 lines) | stat: -rw-r--r-- 141 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
int fact(int n) {
  int accum = 1;
  if (n == 1) return 1;
  for (int count = 1; count <= n; count++)
     accum *= count;
  return accum;
}