Let's formalize a little: the action of creating a new procedure is known as definition or declaration, and that leads us to introduce new syntactic elements (meaning, things that we can write in our program):
procedure
, indicates that we will define a new element;
{
) and ends with closing one (}
), similar to what we already did for the program
.
Let's see if you got it: write a procedure Drop3Red which drops 3 red stones and a program which uses it.
Don't you remember how to write a procedure? Don't worry! It's fine! We are just getting started.
You must sign in before submitting your solutions