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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!