i saw my teacher she wrote some codes of loops and put the value "*" and it comes output as
**
***
*****
******
*******
********
how can i do this????
Hi,
> How can I do this???
1 2 3 4 5 6
|
int a, b;
for(a = 1; a <= ???; a++)
{
for(b = 1; b <= a; b++) cout << '*';
cout << endl;
}
|
Last edited on