Question: Question: Today you are to write a C++ program that asks the user to enter an even number. If the user enters an odd number,

Question: Today you are to write a C++ program that asks the user to enter an even number. If the user enters an odd number, the program should continue prompting for an even number until the user enters the correct input. Then with the use of loops and nested loops you are supposed to produce a specific triangle pattern as illustrated in the figures below. There must be a tab between each number. Be sure to use the same format as in the sample runs in the table below. Your code must work no matter what even number the user enters. The box below illustrates how your program should behave and appear. Note 1: Assume the user always enters positive values of type integer (You do not need to check the negative and floating-point numbers)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
