-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ee76a9
commit ac04a2b
Showing
2 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
-* unsanitized factorial implementation in tr-lang *- | ||
|
||
-* 1 factorial *- | ||
1 kpy 1-kpy dön *tks | ||
kpy 0 > ise | ||
:. kpy 1 > iken | ||
1-kpy dön *tks | ||
son at | ||
yoksa | ||
at 1 | ||
son "1! = " de de "\n" de | ||
|
||
-* 2 factorial *- | ||
2 kpy 1-kpy dön *tks | ||
kpy 0 > ise | ||
:. kpy 1 > iken | ||
1-kpy dön *tks | ||
son at | ||
yoksa | ||
at 1 | ||
son "2! = " de de "\n" de | ||
|
||
-* 3 factorial *- | ||
3 kpy 1-kpy dön *tks | ||
kpy 0 > ise | ||
:. kpy 1 > iken | ||
1-kpy dön *tks | ||
son at | ||
yoksa | ||
at 1 | ||
son "3! = " de de "\n" de | ||
|
||
-* 4 factorial *- | ||
4 kpy 1-kpy dön *tks | ||
kpy 0 > ise | ||
:. kpy 1 > iken | ||
1-kpy dön *tks | ||
son at | ||
yoksa | ||
at 1 | ||
son "4! = " de de "\n" de | ||
|
||
-* 5 factorial *- | ||
5 kpy 1-kpy dön *tks | ||
kpy 0 > ise | ||
:. kpy 1 > iken | ||
1-kpy dön *tks | ||
son at | ||
yoksa | ||
at 1 | ||
son "5! = " de de "\n" de | ||
|
||
-* 100 factorial *- | ||
100 kpy 1-kpy dön *tks | ||
kpy 0 > ise | ||
:. kpy 1 > iken | ||
1-kpy dön *tks | ||
son at | ||
yoksa | ||
at 1 | ||
son "100! = " de de "\n" de |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
-* tr-lang'da sterilize edilmemiş faktoriyel implementasyonu *- | ||
|
||
-* 1 factorial *- | ||
1 kpy 1-kpy dön *tks | ||
kpy 0 > ise | ||
:. kpy 1 > iken | ||
1-kpy dön *tks | ||
son at | ||
yoksa | ||
at 1 | ||
son "1! = " de de "\n" de | ||
|
||
-* 2 factorial *- | ||
2 kpy 1-kpy dön *tks | ||
kpy 0 > ise | ||
:. kpy 1 > iken | ||
1-kpy dön *tks | ||
son at | ||
yoksa | ||
at 1 | ||
son "2! = " de de "\n" de | ||
|
||
-* 3 factorial *- | ||
3 kpy 1-kpy dön *tks | ||
kpy 0 > ise | ||
:. kpy 1 > iken | ||
1-kpy dön *tks | ||
son at | ||
yoksa | ||
at 1 | ||
son "3! = " de de "\n" de | ||
|
||
-* 4 factorial *- | ||
4 kpy 1-kpy dön *tks | ||
kpy 0 > ise | ||
:. kpy 1 > iken | ||
1-kpy dön *tks | ||
son at | ||
yoksa | ||
at 1 | ||
son "4! = " de de "\n" de | ||
|
||
-* 5 factorial *- | ||
5 kpy 1-kpy dön *tks | ||
kpy 0 > ise | ||
:. kpy 1 > iken | ||
1-kpy dön *tks | ||
son at | ||
yoksa | ||
at 1 | ||
son "5! = " de de "\n" de | ||
|
||
-* 100 factorial *- | ||
100 kpy 1-kpy dön *tks | ||
kpy 0 > ise | ||
:. kpy 1 > iken | ||
1-kpy dön *tks | ||
son at | ||
yoksa | ||
at 1 | ||
son "100! = " de de "\n" de |