Giter Club home page Giter Club logo

danieldotwav / triangle-classifier Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 3.38 MB

This console application allows users to input three side lengths and determine the type of triangle they form. It identifies whether the triangle is equilateral, scalene, or isosceles and if it's a right triangle. The program also validates if the input side lengths can form a valid triangle based on the triangle inequality theorem.

C 18.93% C++ 81.06% Makefile 0.01% Nix 0.01%
conditional-logic ctime-attributes random-number-generators mathamatical-algorithms

triangle-classifier's Introduction

Triangle-Classifier

This console application allows users to input three side lengths and determine the type of triangle they form. It identifies whether the triangle is equilateral, scalene, or isosceles and if it's a right triangle. The program also validates if the input side lengths can form a valid triangle based on the triangle inequality theorem.

Key Features

  • Interactive Interface: User-friendly prompts guide users to input side lengths effortlessly.
  • Triangle Classification: The program classifies triangles into equilateral, scalene, or isosceles categories.
  • Right Triangle Detection: It identifies right triangles based on the Pythagorean theorem.
  • Input Validation: Validates if the input side lengths can form a valid triangle.
  • Repeat Functionality: Users can rerun the program to classify more triangles.

How It Works:

  1. Input three side lengths of a triangle.
  2. The program checks if these lengths can form a valid triangle using the triangle inequality theorem.
  3. It classifies the triangle into one of the following types: equilateral, scalene, isosceles, and determines if it's a right triangle.
  4. Users can choose to run the program again to classify more triangles.

triangle-classifier's People

Contributors

danieldotwav avatar

Stargazers

 avatar  avatar  avatar  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.