+ 2
How to print it
I want to print this- 1 1 2 1 1 2 3 2 1 1 2 1 1
4 Antworten
+ 8
@reddylopes -_-
What did you think,bro?
+ 3
You can create the strings as an array:
string drawing[5] = {
" 1 ",
" 1 2 1 ",
"1 2 3 2 1",
" 1 2 1 ",
" 1 "
}
for(int c = 0; c < 5; c++)
cout << drawing[c] << endl;
+ 1
But I want it to be created by loops
0
I'm sorry, you should have specified that.
Check my profile for the answer, the code is a bit long to post here:
https://code.sololearn.com/ciEHPJzI74dQ/#cpp