On Saturday, 20 February 2016 at 01:48:35 UTC, Ali Çehreli wrote:
On 02/19/2016 03:56 PM, Lisa wrote:
Can you please help me and explain how to create a program, which would
find area of triangle and its perimeter?

It's great to have student questions on this forum. If you don't mind telling us, which teacher and school teaches or uses D? The only one that I know of is Professor Chuck Allison at Utah Valley University.

Assuming that you are given the lengths of the three sides, you can calculate the area with Heron's formula. I had used that method in this otherwise unrelated chapter:

  http://ddili.org/ders/d.en/invariant.html

Ali

Thank you :)
I'm actually from Ukraine)

  • 111 Lisa via Digitalmars-d-learn
    • Re: 111 cym13 via Digitalmars-d-learn
      • Re: 111 Lisa via Digitalmars-d-learn
        • Re: 111 Chris Wright via Digitalmars-d-learn
          • Re: 111 Lisa via Digitalmars-d-learn
            • Re: 111 Chris Wright via Digitalmars-d-learn
              • Re:... Adam D. Ruppe via Digitalmars-d-learn
        • Re: 111 cym13 via Digitalmars-d-learn
    • Re: 111 Ivan Kazmenko via Digitalmars-d-learn
    • Re: 111 Ali Çehreli via Digitalmars-d-learn
      • Re: 111 Lisa via Digitalmars-d-learn
      • Re: 111 Lisa via Digitalmars-d-learn
        • Re: 111 Ali Çehreli via Digitalmars-d-learn
          • Re: 111 Lisa via Digitalmars-d-learn
            • Re: 111 Steven Schveighoffer via Digitalmars-d-learn
            • Re: 111 Ivan Kazmenko via Digitalmars-d-learn
              • Re:... Lisa via Digitalmars-d-learn
                • ... Ivan Kazmenko via Digitalmars-d-learn
                • ... Lisa via Digitalmars-d-learn
    • Re: 111 Lisa via Digitalmars-d-learn

Reply via email to