Question: C++ Write a single function prototype and definition for a function named stars that prints a row of asterisks (stars) equal to the sum of
C++ Write a single function prototype and definition for a function named stars that prints a row of asterisks (stars) equal to the sum of the functions arguments. The function may take 2 or 3 arguments and they should be positive integers. (within the function, you should validate that this is true and stop executing the function if it is not). Example: Stars (2,5); // prints ******* Stars (6,1,4); // prints ***********
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
