Created
December 1, 2016 05:08
-
-
Save ncaq/8461d1a498e8f1735f78369e81661f91 to your computer and use it in GitHub Desktop.
2016-05に記述,maudeによる階乗計算
This file contains hidden or 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
fmod fact is | |
protecting INT . | |
var N : Nat . | |
op fact_ : Nat -> Nat . | |
eq fact(0) = 1 . | |
eq fact(N) = fact(N - 1) * N . | |
endfm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment