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

Draw a triangle


Last updated: 8/22/2020 Difficulty: Intermediate

Write a program in C# that asks for a symbol and a width to paint a triangle of that width and height using that number to draw it.

Input

7
5

Output

77777
7777
777
77
7

Solution

Geometry A

3 / 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.

Advertising