Merge branch 'JohnBlood-master-patch-48566' into 'master'

new Basic program to determine triple the entered age

See merge request JohnBlood/learning-to-code!1
This commit is contained in:
John Paul Wohlscheid 2019-10-15 17:04:07 +00:00
commit 5b32cb677a

22
basic/triple-age.bas Normal file
View File

@ -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]