-
-
Save gdyrrahitis/f50fa76fab4790b63feb8f7d4645c4d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Geometry { | |
public class Triangle { | |
private const double Half = 0.5; | |
public double Area (double width, double height) { | |
return width * height * Half; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment