aboutsummaryrefslogtreecommitdiffstats
path: root/calc
diff options
context:
space:
mode:
Diffstat (limited to 'calc')
-rw-r--r--calc12
1 files changed, 12 insertions, 0 deletions
diff --git a/calc b/calc
new file mode 100644
index 0000000..fd67c28
--- /dev/null
+++ b/calc
@@ -0,0 +1,12 @@
+go = 1
+while (go == 1) {
+ print("> ")
+ input = gets()
+ answer = solve(input)
+ if (answer == 42) {
+ go = 0
+ }
+ print("\n")
+ print(answer)
+ print("\n")
+}