- 2
How to make pattern in c++ :-
1 121 12321 123321
3 ответов
+ 18
Hy UmEsH KuMaR ChAmP
● Might some typing error in pattern , it must be like:
1
121
12321
1234321
● For making this pattern :
1)run a loop for number of rows
2) inside it run a loop for each element, start from 1 to (row number) & when it reaches row number , start decreasing it to make 1 again.
+ 2
Do you mean this?
https://code.sololearn.com/c3VS62O2I8Ta/?ref=app
- 1
https://code.sololearn.com/c8OeV7di4VTn/?ref=app