We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Apply
  • Hiring developers?
  1. Prepare
  2. Linux Shell
  3. Bash
  4. More on Conditionals

More on Conditionals

Problem
Submissions
Leaderboard
Discussions
Editorial
Tutorial

Given three integers (, , and ) representing the three sides of a triangle, identify whether the triangle is scalene, isosceles, or equilateral.

  • If all three sides are equal, output EQUILATERAL.
  • Otherwise, if any two sides are equal, output ISOSCELES.
  • Otherwise, output SCALENE.

Input Format

Three integers, each on a new line.

Constraints


The sum of any two sides will be greater than the third.

Output Format

One word: either "SCALENE" or "EQUILATERAL" or "ISOSCELES" (quotation marks excluded).

Sample Input

Sample Input 1

2
3
4

Sample Input 2

6
6
6  

Sample Output

Sample Output 1

SCALENE

Sample Output 2

EQUILATERAL  

Author

PRASHANTB1984

Difficulty

Easy

Max Score

3

Submitted By

80391

Need Help?


View tutorial
View discussions
View editorial
View top submissions

rate this challenge

MORE DETAILS

Download problem statement
Download sample test cases
Suggest Edits
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy