Hi, I have this assignment to do and no idea where to start...
You ask the user to enter a random number, which expresses the size of the 'Christmas tree'. The trunk is not included in the size of the tree.
Example:
size = 5
(5 is the 'input number', that the user has enetered.)
Then in the terminal you get this:
Thanks in advance for your help!
You ask the user to enter a random number, which expresses the size of the 'Christmas tree'. The trunk is not included in the size of the tree.
Example:
size = 5
(5 is the 'input number', that the user has enetered.)
Then in the terminal you get this:
X
XXX
XXXXX
XXXXXXX
XXXXXXXXX
X
XXX
XXXXX
XXXXXXX
XXXXXXXXX
X
Thanks in advance for your help!