In my computing class we have got to make a program which outputs the following
"XXXXXXXXXX
YXXXXXXXXX
YYXXXXXXXX
YYYXXXXXXX
YYYYXXXXXX
YYYYYXXXXX
YYYYYYXXXX
YYYYYYYXXX
YYYYYYYYXX
YYYYYYYYYX
YYYYYYYYYY"
We have to create a function and we can only use if and loops. but I'm having difficultly doing it outside of a function to start with. Please can somebody help?