1. Course
  2. Geometry A
  3. Draw a triangle northeast

Draw a triangle northeast


Last updated: 8/22/2020 Difficulty: Intermediate

Write a program in C # that requests a width and shows a northeast triangle.

Use the * character to paint the triangle.

Input

5

Output

*****
 ****
  ***
   **
    *

Solution

Geometry A

4 / 6

Android App


Practice C# anywhere with the free app for Android devices.

Android App

Exercises C# by difficulty


Learn C# at your own pace, the exercises are ordered by difficulty.

Make a donation


Your donations support our work and contribute to the maintenance of the app.

Advertising