topical media & game development

talk show tell print

graphic-processing-algorithm-Ch01-p33b-p33b.pde / pde



  void setup(){
    print(factorial(5));
  }
  int factorial(int n){
    if(n<=1)
      return 1;
    else
      return n * factorial(n-1);
  }
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.