answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

void main()

{

int a,b,c;

clrscr();

printf("\n Enter the 3 sides of Triangle: ");

scanf("%d %d %d",&a,&b,&c);

printf("\nYour entered side is a=%d b=%d c=%d",a,b,c);

if(a==b && b==c && a==c)

{

printf("\n EQUILATERAL TRIANGLE.");//All sides equal in case of Equilateral triangle

}

else if(a!=b&&b!=c)

printf("\n SCALENE TRIANGLE."); //All sides unequal

else

printf("\n ISOCELES TRIANGLE."); //At least 2 sides equal

getch();

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program in c to display isosceles triangle dy digit?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you start the program 'read in the lengths of the sides of a triangle and determine whether the triangle is an isosceles triangle two sides are equal an equilateral triangle three sides are'?

This would depend on what programming language you wanted to write it in. For example, in Pascal, the code might look like this: Program Isosceles; Var A, B, C : Real; Begin WriteLn('Input side A.'); ReadLn(A); WriteLn('Input side B.'); ReadLn(B); WriteLn('Input side C.'); ReadLn(C); If A = B Then Begin If B = C Then Begin WriteLn('This triangle is equilateral.'); End Else Begin WriteLn('This triangle is isosceles.'); And so on.


Does an isosceles triangle have equal or different length and width?

How many sides does a isosceles have? Please write back or improve my answer. LOVE YOU&lt;3 BYE(: How many sides does a isosceles have? Please write back or improve my answer. LOVE YOU&lt;3 BYE(:


Write a program to display the name of days when a user enters a number?

write a program to display your name age class schoolname e-mail 2hobby based on choice


What do you write when classifying triangles?

there is many ways to write when classifying a triangle, you can classify it by its sides or angles. When you classify it by angles you can classify it by acute, obtuse, and right triangle. when classyfing it by sides its isosceles, equilateral, and scalene!


Write a program to display your name on computer screen?

Faisal


Write a statement that must be true about an equilateral triangle and an isosceles triangle?

An equilateral triangle is also isosceles.Improved Answer:-They are both triangles whose 3 interior angles add up to 180 degrees and an equilateral triangle has 3 equal angles with 3 equal sides whereas an isosceles triangle has 2 equal angles with 2 equal sides


Triangle with 2 lines of symmetry?

A triangle with two lines of symmetry does not exist. It can have one line of symmetry (an isosceles triangle) or three (an equilateral triangle), but not two.


How do you write a program to read set of numbers using by an array and display the ascending order of the given input numbers?

To write a C++ program to display the student details using class and array of object.


Write a program which takes the temperature in farhenheightthe program should display the farhenheight temperature as well as centigrade C equals?

Write a program which takes the temperature in farhenheight.the program should display the farhenheight temperature as well as centigrade. C= (f-32)*5/9


Write c programs to display 10 line biodata?

A C++ program can be used to write C programs that will display 10 lines of biodata. Many types of C programming can be written with a C++ program.


Write a shell program to check and display 10 leap years?

dono


Write a program in c to display welcome to the world of c sharp?

#include&lt;stdio&gt; #include&lt;conio&gt; class program { namespace display { console.println("write your text"); } } correct me if im wrong im a new programmer.