#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();
}
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.
To write a C++ program to display the student details using class and array of object.
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
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.
dono
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.
How many sides does a isosceles have? Please write back or improve my answer. LOVE YOU<3 BYE(: How many sides does a isosceles have? Please write back or improve my answer. LOVE YOU<3 BYE(:
write a program to display your name age class schoolname e-mail 2hobby based on choice
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!
Faisal
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
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.
To write a C++ program to display the student details using class and array of object.
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
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.
dono
#include<stdio> #include<conio> class program { namespace display { console.println("write your text"); } } correct me if im wrong im a new programmer.