Welcome to Julia.

Similar to other programming language you can (but you do not need to) use 
a semicolon as a separator between statements.
So your code example is equivalent to:

tri=base=5
height=10
1/2*base*height

so there is no assignment to tri after the first line, and thus the value 
is equal to 5.

Reply via email to