I need help writing this program and it has to have user input. It has to be C++ language
1) Write a program that displays the following diamond shape. You may use output statements that display either a single asterisk (*) or a single blank. Maximize your use of repetition (with ‘nested repetition’ statements) and minimize the number of output statements. You may not simply type the figure into the program, i.e., the program must calculate and display the entire figure.
Fig. 1
*
***
*****
*******
*********
*******
*****
***
*
2) Modify the program you wrote in 1), above to read an odd number from the user in the range of 5 to 19 to specify the number of rows in the diamond, and then display a diamond of the appropriate size.