Question: How do you write this code in C#? a Q2(6 points): Write a C# method - take as an integer number N and a shape
How do you write this code in C#?
a Q2(6 points): Write a C# method - take as an integer number N and a shape (left or right) - if the shape is left and N = 5, print values of N and shape, and a left-side triangle with 5 rows, like the following example: Nis: 5; shape is left * ** *** ***** ***** - if the shape is right and N= 5, print values of N and shape, and a right-side triangle with 5 rows, like the following example: Nis: 5; shape is right *****
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
