I need to write a program that inputs an integer and a character, and outputs a symetrical triangle composed of the character that has the interger of new lines. I can only use 'while' loops at this stage of the course, and I know it has to be nested 'while' loops. I can not use 'for/next' loops. I have done this before in VB6, so I am somewhat exasperated that I can not even get past firstbase with this same problem in C++. And I like C++, strangely enough. Ive spent close to 20 hours trying to figure it out and just cant ;0
the display needs to look something like(minus the -'s that i had to use here as a placeholder):
-----$
----$$$
---$$$$$
--$$$$$$$
-$$$$$$$$$
<< moderator edit: spaces are preserved using [co[u][/u]de][/co[u][/u]de]
tags >>
$
$$$
$$$$$
$$$$$$$
$$$$$$$$$
I set a variable to the same as the inputed integer and i did
k-- to decrease the space by one every time, but i dont know how i should display more than 1 character per line..
---------------------------------------------------------
Any suggestions would be greatly appreciated.