CJCoding With Joseph

Inverted Right Triangle of Stars

Read an integer N from input. Use nested loops to print an inverted right triangle of * characters: the first line has N stars, the next has N-1, down to 1 star on the last line. Each line ends with a newline. For input 4 the exact output is:

****
***
**
*

Expected Output:

****
***
**
*
Topics:
Loops
๐Ÿ“ฅ Auto-Input:
4\n
This input is automatically fed to your program's stdin
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cout, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.