In previous section we saw how we can group some common code and wrap it in a function.
We can parametrize it with different arguments when we call it.
Functions can also return a value.
Let's define a function:
It will calculate a square of a number.
squarenode with type Integer
xwith type Integer
returnnode and type
x * x
Outputcommand in the main function, and type
Run the program, it should display
25 in the output.