From adbc4248120e245fb68f8658bb765fe04c6ecdab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Tom=C3=A1s?= Date: Fri, 8 Jul 2022 22:48:47 -0300 Subject: Make this thing probably turing complete --- input.stk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'input.stk') diff --git a/input.stk b/input.stk index 51e3270..8b4f68f 100644 --- a/input.stk +++ b/input.stk @@ -1,3 +1,3 @@ -5 dup * dup * dup * print -34 35 + print -1 0 - print +Loops ten times asking for user input. If the input is 0 or nothing, print 69420, else print back the number from the input. +10 [ 0 1 , [ ~ . ! -- ] [ 69420 . ! ] -- ] + -- cgit v1.2.3