GeekInterview.com
Series: Subject: Topic:
Question: 78 of 338

Find Type of Triangle

Write a C++ program to find the type of a triangle by reading three sides of a triangle.
Asked by: AZEEMJ | Member Since Apr-2010 | Asked on: Apr 30th, 2010

View all questions by AZEEMJ

Showing Answers 1 - 1 of 1 Answers
riturajshine

Answered On : Jul 13th, 2010

View all answers by riturajshine

#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();}

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.