r/programminghelp • • Oct 26 '18

C++ Build a house problem

Hey, i'm a student in C++ tutoring at my University. I've been hacking my brain for a few hours at this problem. Can anyone help me out ? I know i have to use for loops but I can't understand how to make this happen.

Thanks !

3 Upvotes

4 comments sorted by

View all comments

1

u/voncheeseburger Oct 26 '18

Hard to do that because of Reddit formatting but this looks like a simple case of working out how many spaces and rows to insert. Maybe try writing something down and people can critique it

1

u/Keyrih Oct 26 '18

I'm just stuck at the right side of the roof, I don't know how to create the space in the middle of the triangle.

1

u/voncheeseburger Oct 27 '18

Have you got some pseudocode? It seems as simple as printing spaces