This is my first time on the forum and I have a problem of printing a Pyramid of X's. The Pyramid should be 20 lines high.
I have to use three for loops to print the Pyramid in consul mode. The problem states that I have to use one outer for loop and two inner for loops to print the Pyramid. One inner for loop prints a space and the other inner for loop prints the X. The outer for loop steps down the screen from line to line.
Can anybody give me any more hints on how to print the Pyramid using the for loops?
I thought of using set(w) along with the inner loops but I can't see how they would be used together.
I for one love when teachers give you the wrong instructions in your assignment. A pyramid is a 3 dimensional shape that presents as a triangle from a front.isometric view and a square or triangle from a top.isometric view. Assuming your a**hole professor meant a triangle then Lynx876 has you off to a good start.
P.S.: Please forgive my demenor someone burnt the coffee maker this morning and I can't get a cup for another 15 mins...