RosettaCodeData/Task/Variables/Bc/variables.bc

16 lines
240 B
Text
Raw Permalink Normal View History

2025-08-11 18:05:26 -07:00
a = 1 /* global variables */
define add(a,b) { /* function parameters */
return a+b
}
define test(c) { /* local variables ('auto') */
auto a
a = 2
return c / a
}
{ print a,"\n"
print add(1,2),"\n"
print test(120),"\n" }