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): WriteHow 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!