Because of necessary software maintenance, Jutge.org may not fully work on the 7 of may, from 8 to 10 CEST.
Escriviu una creu
P24381
Statement
html
Escriviu un procediment
voidcross(intn, charc);
que escrigui una creu n × n amb el caràcter c.
Per exemple, la crida
cross(5, 'X');
produeixen aquesta sortida:
X
X
XXXXX
X
X
Precondició
n ≥ 3, n és senar.
Observació
Només cal enviar el procediment demanat;
el programa principal serà ignorat.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.