aboutsummaryrefslogtreecommitdiff
path: root/vendor/cmilan/test/power.mil
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/cmilan/test/power.mil')
-rw-r--r--vendor/cmilan/test/power.mil14
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/cmilan/test/power.mil b/vendor/cmilan/test/power.mil
new file mode 100644
index 0000000..ac3a830
--- /dev/null
+++ b/vendor/cmilan/test/power.mil
@@ -0,0 +1,14 @@
1BEGIN
2 N := READ;
3 P := READ;
4
5 S := 1;
6
7 WHILE P > 0 DO
8 S := S * N;
9 P := P - 1
10 OD;
11
12 WRITE(S)
13END
14