Question: Write c++ Patterns, by using for loops (Task 3: ) Create a Diamond with a maximum height of heightDiamond. The height here is the vertical
Write c++ Patterns, by using for loops

(Task 3: ) Create a Diamond with a maximum height of "heightDiamond". The height here is the vertical distance from the first row to the last row of the diamond. For ease, only consider even values for the height. Example for heightDiamond == 6 1 Hints: 1. Can you figure out the number of spaces between the start of row and first slash? Can it be expressed as a function of the current row of the diamond and height of the diamond? 2. The number of spaces between the first and second slash can be expressed as twice of a certain variable. Can you figure out the exact formula for it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
