hey breh help me out a lil
how do i get C to print the user's integer input
(Im doin the mario thing in pset1 btw)
from the sounds of it you might be looking at it how I was at first which was giving me problems. without doing too much for you they want you to do this using loops within loops. you've got to create the pyramid
(user inputted variable) lines high. so say if the user types in 4, that's 4 lines or
4 times a loop with \n should be run. as for the hashes and spaces, in the same line of thinking as the height of the pyramid, you want to run the printf() of a hash and a space a certain number of times (they tell you the formula/pattern in one of the videos). another thing that helped is when I was starting off I used the letter 'a' as a placeholder for spaces and 'b' for hashes just so when I was running it and changing things by trial and error it was easier to count the total spaces and hashes. also helps if you get a pen and paper and try to trace
step by step why you're output is doing what it is, it makes it a lot clearer when you break it down.
they really throw you right into the mix from the start in this but it's nothing a few google searches or questions on here or their reddit can't get you through.