Find Type of Triangle

Write a C++ program to find the type of a triangle by reading three sides of a triangle.

Questions by AZEEMJ

Showing Answers 1 - 3 of 3 Answers

#include<iostream.h>

#include<conio.h>
void main()
{
  int a,b,c;
  cout<<"ENTER THE SIDES OF A TRIANGLE";
  if(a==b&&b==c&&a==c)
  cout<<" ITS IS AN EQUILATERAL TRIANGLE";
  else if(a==b||b==c||a==c)
  cout<<"ITS AN ISOSCELES TRIANGLE";
  else 
  count<<"ITS A SCALEN TRIANGLE";
  getch();
}


  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions