Question: C++ language - Functions 1 to 3 can be done all in one document 1. Write a function called printStar that takes an integer and
1. Write a function called printStar that takes an integer and prints that many stars, e.g printStar (5) would output"*(without quotes). Use a for loop to implement this function void printStar (int s) 2. Write a function called oddStars that takes an integer max. oddStars prints rows of stars where each row is an odd number of stars and the last row has max stars or less, e.g oddStars (5) would output void oddStars (int max) Make sure that both oddStars (5) and oddStars (6) print 5 stars in the last row 3. Write a function called arrow which takes an integer size and prints out a sideways arrow shape usings stars, e.g. arrow(3) would output arrow (7) would output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
