Professional Documents
Culture Documents
الوظائف التراجعية
الوظائف التراجعية
;Fonction C(n,k:integer):integer
Begin
If k=0 or n=0 then
C:=1
Else
¿) C ¿ n / k (C ¿ ¿ k−1n−1
;End
مثال : 2أحسب !nإبستعامل الوظيفة الرتاجعية؟
;Fonction fact(b:integer):integer
Begin
If b=0 then
Fact:=1
Else
;)Fact:=b* fact(b-1
;End
1