Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis
Created July 13, 2018 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdyrrahitis/f50fa76fab4790b63feb8f7d4645c4d3 to your computer and use it in GitHub Desktop.
Save gdyrrahitis/f50fa76fab4790b63feb8f7d4645c4d3 to your computer and use it in GitHub Desktop.
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