This is a loop nesting exercise. Use two loops, including at least one for
loop, to write a C++ program that prints out an upside down triangle of stars to the screen.
ex3_stars.cpp
in the replit team project or create it in your IDE.
How many stars on the first line? 5
*****
****
***
**
*
or:
How many stars on the first line? 2
**
*
How many stars on the first line? 5
5
4
3
2
1
ex3_stars.cpp
.
©Department of Computer Science, University of Regina.