Question: Problem 10 (5 pts): Write a function in C++ that takes an integer as an input parameter, and then prints out an x of stars
Problem 10 (5 pts): Write a function in C++ that takes an integer as an input parameter, and then prints out an x of stars such that, for example, if the number is 5, the following would be printed out:

Note that if the input parameter is an even number, round up to the next odd number. This should use a nested loop. Test this function with 3 different integers.
Problem 10 (5 pts): Write a function that takes an integer as an input parameter, and then prints out an x of stars such that, for example, if the number is 5, the following would be printed out: te i* Note that if the input parameter is an even number, round up to the next odd number. This should use a nested loop. Test this function with 3 different integers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
