In [24]:
x = 10
println(x)
#Variables are case sensitive
X = 20
println(X)
#Unicode characters are valid as variable names
✪ = 30
println(✪)
In [25]:
y = x+1
t = x + y
f = t - y
println("$y,$t,$f")
In [26]:
x = 1 + 1
println(x)
#Built in constants can be rewritten
println(pi)
pi = 4
println(pi)
In [ ]: