Write a program in C # that requests a width and shows a northeast triangle.
Use the * character to paint the triangle.
public class DrawTriangleNorthEast
public static void Main()
int height = Convert.ToInt32(Console.ReadLine());
int width = 0;
int max = height;
for (int row = 0; row < height; row++)
for (int column = 0; column < width; column++)
for (int symbols = 0; symbols < max; symbols++)
Practice C# anywhere with the free app for Android devices.
Learn C# at your own pace, the exercises are ordered by difficulty.
Own and third party cookies to improve our services. If you go on surfing, we will consider you accepting its use.