Question: Nested Counting Loops Exercise This is a loop nesting exercise. Use two loops, including at least one for loop, to write a C + +
Nested Counting Loops Exercise
This is a loop nesting exercise. Use two loops, including at least one for loop, to write a program that prints out an upside down triangle of stars to the screen.
Write a program from scratch
Add code to template file exstars. cpp in the replit team project or create it in your IDE.
The user will enter the number of stars in the first line, then nested loops will print the triangle of stars.
For example:
How many stars on the first line?
or:How many stars on the first line?
Tips:
try starting with a counting for loop that counts down from the number the user entered to like this:
How many stars on the first line?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
