Inverted Triangle Pattern Problem

Inverted Triangle Pattern Problem — ExecCode School DSA Practice

Solve the Inverted Triangle Pattern problem on ExecCode. Free online school DSA practice in Patterns. Write and run code in Java, C++, Python — no signup required to run.

Problem description

Given an integer N, print an inverted right-angled triangle pattern made of asterisks, starting with N asterisks in the first row. Your task is to understand the rule and print the correct answer. You are working on Inverted Triangle Pattern.

Examples

Input 5; Output * . Input 3; Output

Constraints

1 <= N <= 20

Practice Inverted Triangle Pattern free on ExecCode. Browse DSA problems, topic map, and placement guides.