1. Course
  2. Geometry A
  3. Draw a right-aligned triangle

Draw a right-aligned triangle


Last updated: 8/22/2020 Difficulty: Intermediate

Write a program in C# that asks the user for a string and displays a right-aligned triangle.

Input

Jonny

Output

y
ny
nny
onny
Jonny

Solution

Geometry A

5 / 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