From 2419fbbc743368cd4f591c1d016a59f98072c792 Mon Sep 17 00:00:00 2001 From: John Paul Wohlscheid Date: Tue, 15 Oct 2019 17:03:10 +0000 Subject: [PATCH] new Basic program to determine triple the entered age --- basic/triple-age.bas | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 basic/triple-age.bas diff --git a/basic/triple-age.bas b/basic/triple-age.bas new file mode 100644 index 0000000..0324776 --- /dev/null +++ b/basic/triple-age.bas @@ -0,0 +1,22 @@ +'This program will ask for your age an triple it + +[start] + + print "Please enter your age" + input "(Press 'h' for help) ?" ; age + 'The above will capture the user's age and make it a variable + if age = h then goto [help] + let triple = age * 3 + print "Triple your age is: "; triple ; "." + goto [start] + +[help] + + cls + print "In order for this highly complicated program" + print "to determine triple your age, you need to enter" + print "your current age." + print + input "Press [Enter] to continue."; dummyVariable + print + goto [start]