Page 1 of 1

Please write in C++ Prompt the user to enter an integer. Print a pattern similar to the following: 1 212 32123 212 1 The

Posted: Fri Jul 01, 2022 5:50 am
by answerhappygod
Please write in C++
Prompt the user to enter an integer. Print a pattern similar tothe following:
1
212
32123
212
1
The user's integer should always be the first value on themiddle row (so the example above is for the input 3). The outputshould be neatly formatted in a "diamond" pattern.