The easiest text-based programming language ever
T# Documentation
# A simple calculator program in T#. # ================================= # Program notes: # The :result: is a virtual variable that is used to refer to the output of the previous function. # :variable_name: is used to refer to variables. This can also be used in strings. # If you call a non-existant variable in a string, it will just return the name of the non-existant variable you called. # The restart function restarts the program from the first line. # The if function is used for boolean operations. Note that nested if functions are not allowed. # The break function stops the program execution on the spot. # ================================= output Simple calculator program in T# ask Enter a number: set first_number to :result: ask Enter another number: set second_number to :result: add :first_number: :second_number: set sum to :result: output The sum of :first_number: and :second_number: is :sum:. ask Do you want to calculate another problem? (yes/no) if :result: is yes then restart else output Goodbye! break end
Run
Stop
Share
T# Documentation
Close