Good Afternoon,
How do you write a two nested do-while loops to display the pattern:
*
**
***
****
*****
******
So far I have this code, but it just displays ******
int i=0;
do{
cout<<'*';
i++;
}while(i<5);
cout<<endl;