As you can imagine, not only the head can be moved to the north, and a program can combine any kind of movements.
Write a program that moves the head two positions to the East and one to the South, resulting in the following effect:
Inicial | Final | |
---|---|---|
|
|
Remember that the command which moves the head is called Move (neither mOvE or move or MOVE). It's very important to observe the syntax! If you don't do it, the program won't work.
The directions have the names of the four cardinal points, with the first letter capitalized:
North
South
East
West
You must sign in before submitting your solutions