Search for a lesson?


C# 327: Drawing Triangle 3

Problem 26 - Drawing Triangle 3: In this program you are allowed to use in every output statement only one * or one space or one new line. In other words you are only allowed to use Console.Write("*") or Console.Write(" ") or Console.Write("\n"). Write a program that reads from the user a number and prints a filled triangle as in the picture below.

Duration: 8:56

Difficulty: Advanced

Downloads: Solution



Photos from this tutorial