summaryrefslogtreecommitdiff
path: root/rushs/tinyprintf/facto/facto.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rushs/tinyprintf/facto/facto.sh')
-rwxr-xr-xrushs/tinyprintf/facto/facto.sh10
1 files changed, 0 insertions, 10 deletions
diff --git a/rushs/tinyprintf/facto/facto.sh b/rushs/tinyprintf/facto/facto.sh
deleted file mode 100755
index 350973a..0000000
--- a/rushs/tinyprintf/facto/facto.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-[ $# -ne 1 ] && exit 1
-i=$1
-res=1
-while [ "$i" -gt 0 ]; do
- res=$(($res * $i))
- i=$(($i - 1))
-done
-echo "$res"