aboutsummaryrefslogtreecommitdiff
path: root/prog/euclideanAlgorithmInput.html
diff options
context:
space:
mode:
authorBen Burwell <ben.burwell@trifecta.com>2016-09-14 16:15:20 -0400
committerBen Burwell <ben.burwell@trifecta.com>2016-09-14 16:15:20 -0400
commitf704918fe2b187d715fe985ebffebdfbdc4b541f (patch)
tree9fc63b49b81ded84624bc6b1679015baffd7d292 /prog/euclideanAlgorithmInput.html
parent2c1eee7b2a99985bbe92426368ea32360a4cc0b2 (diff)
Add repeat and input
Diffstat (limited to 'prog/euclideanAlgorithmInput.html')
-rw-r--r--prog/euclideanAlgorithmInput.html69
1 files changed, 69 insertions, 0 deletions
diff --git a/prog/euclideanAlgorithmInput.html b/prog/euclideanAlgorithmInput.html
new file mode 100644
index 0000000..dfba476
--- /dev/null
+++ b/prog/euclideanAlgorithmInput.html
@@ -0,0 +1,69 @@
+<!doctype html>
+<html>
+ <head>
+ <script type="text/javascript" src="../lib/doml.js"></script>
+ <script>
+ Doml.runOnLoad();
+ </script>
+ <link rel="stylesheet" href="../lib/style.css">
+ </head>
+ <body>
+ <span class="statement-sequence">
+ <span class="assign" data-name="EuclideanAlgorithm">
+ <span class="function" data-args="a,b">
+ <span class="statement-sequence">
+ <span class="while">
+ <span class="compare" data-op="!=">
+ <span class="variable" data-name="b"></span>
+ <span class="constant" data-val="0" data-type="number"></span>
+ </span>
+
+ <span class="branch">
+ <span class="compare" data-op=">">
+ <span class="variable" data-name="a"></span>
+ <span class="variable" data-name="b"></span>
+ </span>
+
+ <span class="assign" data-name="a">
+ <span class="bin-op" data-op="-">
+ <span class="variable" data-name="a"></span>
+ <span class="variable" data-name="b"></span>
+ </span>
+ </span>
+
+ <span class="assign" data-name="b">
+ <span class="bin-op" data-op="-">
+ <span class="variable" data-name="b"></span>
+ <span class="variable" data-name="a"></span>
+ </span>
+ </span>
+ </span>
+ </span>
+
+ <span class="branch">
+ <span class="compare" data-op="==">
+ <span class="variable" data-name="a"></span>
+ <span class="constant" data-val="1" data-type="number"></span>
+ </span>
+ <span class="print">
+ <span class="constant" data-val="Relatively prime" data-type="string"></span>
+ </span>
+ <span class="print">
+ <span class="constant" data-val="Found GCD" data-type="string"></span>
+ <span class="variable" data-name="a"></span>
+ </span>
+ </span>
+ </span>
+ </span>
+ </span>
+
+ <span class="input" data-prompt="Enter the first value" data-name="val1" data-type="number"></span>
+ <span class="input" data-prompt="Enter the second value" data-name="val2" data-type="number"></span>
+
+ <span class="call" data-name="EuclideanAlgorithm">
+ <span class="variable" data-name="val1"></span>
+ <span class="variable" data-name="val2"></span>
+ </span>
+ </span>
+ </body>
+</html>