aboutsummaryrefslogtreecommitdiff
path: root/factorial.trt
diff options
context:
space:
mode:
Diffstat (limited to 'factorial.trt')
-rw-r--r--factorial.trt9
1 files changed, 9 insertions, 0 deletions
diff --git a/factorial.trt b/factorial.trt
new file mode 100644
index 0000000..f2e628b
--- /dev/null
+++ b/factorial.trt
@@ -0,0 +1,9 @@
+"Factorial for num:" OUT
+INP FLT
+#loop
+ DUP
+ 1 DIF
+DUP 1 GRT @loop IFJ
+SWP
+PI_
+STR OUT \ No newline at end of file