Giter Site home page Giter Site logo

triangle-identifier's Introduction

Triangle-Identifier

A program that can identify if a trinagle is isosceles, equilateral or scalene.

#Introduction

A triangle is a geometric figure formed by three lines that meet pairwise and do not pass through the same point, forming three sides and three angles.

By observing the triangle, we can identify some of its elements:

  • A, B, and C are the vertices.
  • The sides of the triangles are symbolized by the meeting of the vertices (points of intersection).

A triangle can be classified according to the measure of its sides:

  • Scalene Triangle: All sides and angles are different.
  • Isosceles Triangle: Two sides are equal, and the angles opposite these sides are also equal.
  • Equilateral Triangle: All sides and angles are equal. Each angle is 60ยฐ.

Existence Condition of a Triangle:

  • To construct a triangle, we cannot use just any measurements. They must follow the existence condition:
  • To construct a triangle, the measure of any one side must be less than the sum of the other two sides.

Objective

a) Given three values X, Y, Z, write a message informing whether it is an equilateral, isosceles, or scalene triangle.

  • Equilateral: All sides are equal.
  • Isosceles: Two sides are equal.
  • Scalene: All sides are different.

b) If any side length of the triangle is invalid, write the message "Invalid Triangle".

triangle-identifier's People

Contributors

pedroka-dev avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.