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

12th Jul 2019, 10:29 AM
Sanjana Sharma
Sanjana Sharma - avatar
7 odpowiedzi
0
what language?
12th Jul 2019, 10:38 AM
Taste
Taste - avatar
0
C++
12th Jul 2019, 12:12 PM
Sanjana Sharma
Sanjana Sharma - avatar
0
Show an example using text? You need to explain more
15th Jul 2019, 11:33 AM
Trigger
Trigger - avatar
0
I want to print a diamond Without using loop can i
15th Jul 2019, 11:45 AM
Sanjana Sharma
Sanjana Sharma - avatar
0
* ** *** **** *** ** * Or * * * * * * * * * * * * *
15th Jul 2019, 12:24 PM
Trigger
Trigger - avatar
0
2nd
15th Jul 2019, 2:07 PM
Sanjana Sharma
Sanjana Sharma - avatar
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
15th Jul 2019, 2:40 PM
Trigger
Trigger - avatar