My book says to, as an excercise, make a pyramid of Xs 20 lines long, like this:And so on.Code:X XXX XXXXX XXXXXXX
After trying to do it many times, the most I could do was make lines of Xs that increased by 1 every line (the pyramid requires the Xs to be increased by two). Can someone give me the code to do this? My book says to use 3 for loops, which I've been trying to do. I just need to study the code needed for this program carefully.