Tag: loop

C# Basic: Nested Loop (Display Star Right Triangle)

Today I will show you how to use a nested loop. To demonstrate a nested loop we will create a star triangle pattern. Our output will look like this. https://www.youtube.com/watch?v=mFSS9XSxPEg&feature=youtu.be First we will ask the user to enter the height of the triangle. We can get a user input by using the Console.ReadLine(). Console.ReadLine() returns … Continue reading C# Basic: Nested Loop (Display Star Right Triangle)