Problem Statement
Write a program that reads an integer N and prints an inverted right-angled triangle made of asterisks (*).
Pattern Details
- The first row should contain
Nasterisks. - Each subsequent row should have one fewer asterisk than the previous.
- The last row should contain exactly one asterisk.
This pattern is best implemented using nested loops.