hi guys, i have complicated homework to do. how do i print this pyramid using c++. i have been trying since last month but can't do it. any help please
Do you notice any patterns? Your shape is 9 characters wide, only that not all of the characters are asterisks in each line. On the first line, there's 1 asterisk and 8 spaces. On the next, there are 3 asterisks and 6 spaces. See? For each line (until line 5), the number of spaces to the left decreases by one, the number of asterisks increases by two, and the number of spaces to the right increases by one. After line 5, the opposite happens.
Bello Abdullahi Maimaje, in the future, I'd like to ask that you don't post solutions to problems, especially if they aren't well-commented, and especially if they don't feature the best coding style (void main()) There are a few good reasons not to. :/
-Albatross
EDIT: The answer to the ultimate question of life, the universe, and anything, now a palindrome, as my post count, which is still counting.
it was me that reported ALBATROSS because we are all here to learn, and no solution is perfect. He better learn how to speak next time. I asked because, it was complicated for me not asked anyone to dis respect anyone here.
I'm happy with BELLO ABDULLAHI MAIMAJE help because, i learn alot from his program.
it was me that reported ALBATROSS because we are all here to learn
Yes, but the problem is many people will simply take the solution and leave...you might do that, for example. I'd like to hope that you won't, but given you didn't even bother to make an effort makes me think otherwise.