q1:rekursiver_ausdruck_fuer_binomialkoeffizient

/**
 *
 * Beschreibung
 *
 * @version 1.0 vom 04.10.2021
 * @author Zerr
 */
 
public class fakundbin {
 
 
  public static int fac ( int n ) { 
    if ( n == 0) { 
    return 1 // Basisfall 
    ;} 
 
 
    else {  
       return n * // selbst gel�ster Teil 
       fac (n-1); // rekursiver Aufruf } }
         }
  }  
 
 
   public static long bin (int n, int k ) {     
    return 0;
    }  
 
 
  public static void main(String[] args) {
    System.out.println(fac(5));
  } // end of main
 
} // end of class fakundbin
  • /var/www/infowiki/data/pages/q1/rekursiver_ausdruck_fuer_binomialkoeffizient.txt
  • Zuletzt geändert: 2021/10/31 13:10
  • von admin03