#include<iostream>
usingnamespace std;
int main()
{
int line = 1;
int star = 1;
do
{
cout << '*';
star++;
do
{
cout << endl;
line++;
}while (star>line);
}while (line<11);
return 0;
}
I realized one of the issues was that I needed to declare the star variable within the loop. Well, and the rest was a general mess too. Maybe one day I'll be able to explain to myself and others... :)