Please help me on Exercixe 40 PrintingLikeBoss

349 views
Skip to first unread message

musam...@gmail.com

unread,
Jun 27, 2015, 11:45:07 AM6/27/15
to moo...@googlegroups.com
Hi,

I'm having problems with week 2 exercise 40.

I'm stuck at Ex 40.3,please guide me, I dont know how to print xmasTree and printTriangle side by side:


Best regards


nyg...@gmail.com

unread,
Jun 30, 2015, 6:32:25 AM6/30/15
to moo...@googlegroups.com, musam...@gmail.com
Hello,

Think about how does the amount of spaces and stars correlate with the line number.

Try to calculate how many spaces should each row have and how the amount changes when you advance to the next line. Next you just need to think how many stars you need to print for each line.

Hope this helps.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages