*
**
***
****
*****
******
but right now it just shows.
*
*
*
*
*
*
Can someone give me a hint on what I am doing wrong or if I am missing something?
#include <iostream>
using namespace std;
int main()
{
int star = 0;
int row = 6;
do
{
cout << "*";
cout<<endl;
star++;
star = 0;
row--;
}
while ((star <= row) && (row >= 1));
}

New Topic/Question
Reply



MultiQuote





|