0
Can i print a symbol with the increase in its no
Means that I want to print a symbol one time And next I want to print the same symbol 3 time And 4 times and so on
7 Answers
0
what language?
0
C++
0
Show an example using text? You need to explain more
0
I want to print a diamond Without using loop can i
0
*
**
***
****
***
**
*
Or
*
* * *
* * * * *
* * *
*
0
2nd
0
for (int layer = 1; layer<10; layer++)
{
for (int space=0; space < layer; space++)
{
cout << " ";
}
for (int star = 0; star < layer; star++)
{
cout << "* ";
}
cout << endl;
}
Or something like that, just off the top of my head