logo CodeStepByStep logo

Triangle

Using the DrawingPanel class, write a C# class named Triangle that produces the following figure:

C# DrawingPanel close maximize minimize
expected output
 
  • size: 600x200
  • background color: yellow
  • line color: blue
  • vertical spacing between lines: 10 px

The diagonal lines connect at the bottom in the middle.

Type your C# solution code here:


This exercise asks for a complete program. This should essentially be contents you could put into a file and run outside of CodeStepByStep.

You must log in before you can solve this problem.

Log In

Need help?

If you do not understand how to solve an exercise or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect tests, etc.), please

Is there a problem? Contact a site administrator.

©, all rights reserved.