About 2,820,000 results
Open links in new tab
  1. Area of Triangle in C# with Examples - Dot Net Tutorials

    To find the area of a triangle, we need to follow the below steps. First, we will take variables side1, side2, side3, semiperimeter, and area. Then semiperimeter will calculate by the formula of …

  2. math - C# Heron - triangles - Stack Overflow

    Nov 13, 2017 · Write an Application that reads the length of the sides of a triangle from the user. Compute the area using Heron's formula (below), in which s represents half of the perimeter of …

  3. c# - Calculation the area of a triangle - Stack Overflow

    Jun 8, 2012 · I'm using this code to calculate the area of a triangle, with the values 2, 2 and 1. When I do the calculation in my pocket calculator I get 0.97, but in C# it's 0. I guess it has …

  4. Program to find area of triangle - CodeCrucks

    Dec 23, 2024 · Area = 0.5 × Base × Height. 2. Heron’s Formula (if the lengths of all three sides are known) s = (a + b + c)/2. Area = sqrt (s x (s – a) x (s – b) x (s – c)) Where a, b, and c are …

  5. Calculate Area of Triangle in C# - CodePal

    Learn how to write a C# function to calculate the area of a triangle using Heron's formula. This page provides a detailed explanation and example code.

  6. c# - How to call a method to get area of a triangle - Stack Overflow

    Feb 4, 2014 · public double area(double height, double length, double width) { area = (height * length * width) / 2; return area; }

  7. Land Area Calculation with Heron's Formula in C# - C# Corner

    In this article, we'll explore how to utilize Heron's formula, a geometric approach, to calculate land area using a straightforward C# program. This program empowers users to input side lengths …

  8. C#. Windows Forms. An example of using a delegate to call an …

    Nov 8, 2017 · Develop an application that finds the area of the triangle according to Heron’s formula. In an application, implement an anonymous method calling using a delegate. The …

  9. How to find the area of a Triangle in C# - CodeVsColor

    In this article, we will learn how to find the area of a triangle in C#. Finding the area requires the height and the base of the triangle. Once we get both, we can find the area with a simple formula.

  10. CodePark 0003 : Calculate the Area of a Triangle Using Heron's Formula ...

    In this video, I demonstrate how to create a C# console application that calculates the area of a triangle using Heron's formula. The program takes the lengt...

  11. Some results have been removed