Exercise 5: Portugal

Portugal

Write a program that draws a Portuguese flag, which looks like follows:

Since we won't be so fussy, we will ask you a simplified version, which must be like this:

GBB/1.0 size 3 2 cell 0 0 Verde 1 cell 0 1 Verde 1 cell 1 0 Rojo 1 cell 1 1 Rojo 1 cell 2 0 Rojo 1 cell 2 1 Rojo 1 head 2 1

Oh, the head starts in the origin.

You must sign in before submitting your solutions

Oops, your solution didn't work

  • Check that your program does not have recursion or an infinite loop
  • Check that you have an internet connection
  • Wait a while and try again

We are processing you solution

Please press F5 if results are not displayed after a few seconds