aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/right_tri.ds6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/right_tri.ds b/examples/right_tri.ds
new file mode 100755
index 0000000..7a50368
--- /dev/null
+++ b/examples/right_tri.ds
@@ -0,0 +1,6 @@
+#!/bin/ducky
+PROMPT a
+PROMPT b
+LOG Length of hypotenuse:
+LOGVAR sqrt(a**2 + b**2)
+NEWLINE