Created
June 26, 2012 18:50
-
-
Save trietptm/2997924 to your computer and use it in GitHub Desktop.
Tính giá trị giai thừa của một số nguyên bất kỳ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
giaithua(0, 1) :- !. | |
giaithua(X, Y) :- X1 is X-1, giaithua(X1, Y1), Y is X*Y1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment