Question: C++ 15. [5] Write a program fragment to print a number of stars on a line, as instructed by the user. The fragment will ask
15. [5] Write a program fragment to print a number of stars on a line, as instructed by the user. The fragment will ask user for the number of stars and then print them on a single line. Example: Give number of stars to start: 5 16. [4 extra] Redo the above to print a triangle instead. Example Give number of stars to start: 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
