logo CodeStepByStep logo

Triangle

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

Java 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.

Class: Write a complete C# class.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.