aboutsummaryrefslogtreecommitdiffstats
path: root/test/resources/program.bork
blob: 52cee38704d1657c3ebddb7a70c44f193cb7b6f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* get an integer from the user */
decl user_input
set user_input in("give integer: ")
out( concat("your input was: " user_input "!") )

/* add 10 to the integer */
decl operand set operand 10

decl sum
set sum + as_int(user_input) operand

/* print the sum */
out( concat(user_input " + " operand " = " sum) )

"done"