Question: This is a C++ problrm 1, write a program to print, using asteriskcharacters, a solid diamond shape followed by a hollow diamond shape. o input:

This is a C++ problrm
1, write a program to print, using asterisk"characters, a solid diamond shape followed by a hollow diamond shape. o input: the number of asterisks on a side o output: an ASCII art triangle of the appropriate dimensions. note: the height and width will be twice that, minus one] Ensure that the minimum size will be two. Else, display a message, and let the user re-enter Print two diamonds on successive sets of lines. -the first will be solid asterisks. the second will be an outline of asterisks only Hint: you may use multiple sets of loops, so consider different ways you could decompose these diamonds into simpler components, then assemble these diamonds from these components For Example: For a size of 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
