Question: c++ Problem 3 Write a program that prints a diamond based on a size entered by the user. The size must be an odd number

c++
Problem 3 Write a program that prints a diamond based on a size entered by the user. The size must be an odd number larger than 2. If the size is even, the program will increment the size by one. The program must repeat itself until-I is entered. Diamonds 10 points Example: Input: 3 Output: Input: 2 Error Please enter a number larger than 2 Input: 4 Assignment 5 output:* Input: 7 output: -1 Input: Goodbye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
