Skip to main content
edited title
Link
AmyG
  • 41
  • 4

help fixing the spaces on mario's pyramid

added 2 characters in body; edited title
Source Link
AmyG
  • 41
  • 4

can you help me understand how the print_row function works together with the first for loop to createfixing the spaces on pyramid?

Code for mario I I need some help figuring out how to change the number of spaces on each line of the pyramid. The pyramid comes out with 5 spaces at the beginning of each line instead of 4, then 3 then 2, etc. I thought that by telling the print_row function that the input for "spaces" would be the height indicated by the user minus 1, and then subtracted by one each time it goes through the loop should achieve this but I'm stuck. Thanks in advance for any helppyramid! Code for mario pyramid

can you help me understand how the print_row function works together with the first for loop to create the pyramid?

Code for mario I need some help figuring out how to change the number of spaces on each line of the pyramid. The pyramid comes out with 5 spaces at the beginning of each line instead of 4, then 3 then 2, etc. I thought that by telling the print_row function that the input for "spaces" would be the height indicated by the user minus 1, and then subtracted by one each time it goes through the loop should achieve this but I'm stuck. Thanks in advance for any helppyramid

help fixing the spaces on pyramid

I need some help figuring out how to change the number of spaces on each line of the pyramid. The pyramid comes out with 5 spaces at the beginning of each line instead of 4, then 3 then 2, etc. I thought that by telling the print_row function that the input for "spaces" would be the height indicated by the user minus 1, and then subtracted by one each time it goes through the loop should achieve this but I'm stuck. Thanks in advance for any help! Code for mario pyramid

added 100 characters in body
Source Link
AmyG
  • 41
  • 4

ICode for mario I need some help understanding the logic offiguring out how the two loops work together to createchange the number of spaces on each line of the pyramid in. The pyramid comes out with 5 spaces at the mario problem setbeginning of each line instead of 4, then 3 then 2, etc.

In I thought that by telling the print_row function that we create, once i = 2 or higher, how does it know to print more than one hash before going to the next line? Sinceinput for "spaces" would be the printf function insideheight indicated by the function says to print just one hash, I'm struggling to understand how each new row will have more hashesuser minus 1, even as the variable i is increasedand then subtracted by one with each repetition oftime it goes through the loop should achieve this but I'm stuck. Thanks in advance for any helppyramid

I need some help understanding the logic of how the two loops work together to create the pyramid in the mario problem set.

In the print_row function that we create, once i = 2 or higher, how does it know to print more than one hash before going to the next line? Since the printf function inside the function says to print just one hash, I'm struggling to understand how each new row will have more hashes, even as the variable i is increased by one with each repetition of the loop.

Code for mario I need some help figuring out how to change the number of spaces on each line of the pyramid. The pyramid comes out with 5 spaces at the beginning of each line instead of 4, then 3 then 2, etc. I thought that by telling the print_row function that the input for "spaces" would be the height indicated by the user minus 1, and then subtracted by one each time it goes through the loop should achieve this but I'm stuck. Thanks in advance for any helppyramid

Source Link
AmyG
  • 41
  • 4
Loading