answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: 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'?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Uses of specification in construction?

In construction, specifications determine the quantities, lengths and heights of structures and ratios of materials to be used. Specifications guide the builders on the size and scale of various surfaces.


Why is it important not to use water heating pipes in long straight lengths?

its not important, its just not done, heating radiatorscome in specified lengths use the longest manufactered!


When calculating the mechanical advantage of a lever what two pieces of information are needed?

You need to know the length of the lever and the location of the fulcrum along that length. The ratio of the lengths on either side of the fulcrum will determine the ratio of forces at either end. The length of the lever will dictate the total force possible. For a lever of length L divided into lengths a and (L - a) by the fulcrum (where a is the length of the lever between the fulcrum and the object you want to apply force to), the mechanical advantage will beM.A = (L-a)/aThe longer the lever, the bigger you can make the numerator of that fraction while keeping a unchanged.


What do you need to know before you can write shape recognition programs for c plus plus?

Shape detection requires a slew of techniques, including edge detection, pattern matching, probability analysis, feature detection, middle mass and blob detection, image correlation and pixel classification. Recognising simple shapes like triangles, squares and circles is relatively easy. Use edge detection to find the border line and count the number of edges. If one line, it's a circle, three is a triangle and four is a square. You can then analyse the lengths and angles to determine more specific information, such as ellipse, right-angled triangle, rhomboid, parallelogram and so on. For more complex shapes, you'll need to use pattern matching, feature detection and probability analysis. The remaining techniques are primarily used for detecting 3D planes in a 2D image, separation and classification of objects and so on.


What are the cut off lengths or dimensions on 15mm and 22mm low carbon steel pipe?

In the USA, 15mm is half-inch, and 22mm is three-quarters inch. Lengths of pipe nipples in these sizes range from one and a quarter/one and a half, to six inches, in half-inch increments.

Related questions

How do you find which triangle if you know the lengths of the sides of a triangle whether it is isosceles or equilateral or scalene?

You look at the lengths of the sided of the triangle. If the two lengths are same, the triangle is an isosceles triangle. If all the lengths are same, the triangle is an equilateral triangle. If none of the lengths are same, the triangle is a scalene triangle.


What is the difference between a scalene an isosceles and an equilateral triangle?

A scalene triangle has 3 sides of different lengths An isosceles triangle has 2 sides of equal lengths An equilateral triangle has 3 sides of equal lengths


A triangle with side lengths of a b and c is which type of triangle?

You must have more information to determine what type of triangle it is. If two of the lengths are equal, it is isosceles. If all three of the lengths are equal, it is equilateral. If none of them are equal, it is scalene. It may also be a right triangle if it is isosceles or scalene.


Can a scalene triangle be isosceles?

No. An equilateral triangle is also isosceles, but isosceles is not scalene.


All isosceles triangles are also equilateral triangles?

No, all isosceles triangles are not equilateral triangles. An isosceles triangle is a triangle that has two sides of equal length. An equilateral triangle is a triangle that has all three sides of equal length. Therefore, it is possible for a triangle to be isosceles but not equilateral. For example, a triangle with sides of lengths 3, 3, and 4 is an isosceles triangle, but it is not an equilateral triangle because all its sides do not have the same length. On the other hand, all equilateral triangles are also isosceles triangles because they have two sides of equal length. My recommendation ʜᴛᴛᴘꜱ://ᴡᴡᴡ.ᴅɪɢɪꜱᴛᴏʀᴇ24.ᴄᴏᴍ/ʀᴇᴅɪʀ/372576/ꜱᴀɪᴋɪʀᴀɴ21ᴍ/


What type of triangle is ABC?

You must have more information about the triangle. If you know the angles, and two of them are equal, it is an isosceles triangle. If all three of the angles are sixty-degrees, it is an equilateral triangle. If none of the angles are the same, it is a scalene triangle. If one of the angles is ninety degrees, it is a right triangle (right triangles may also be scalene or isosceles). If you know the side lengths and two of them are equal, it is isosceles. If they are all equal, it is equilateral. If none of them are equal, it is scalene. A scalene or isosceles triangle may also be a right triangle, which you could determine from side lengths using the pythagorean theorem.


What are the kinds of triangle according to measure of sides?

An isosceles triangle has 3 sides 2 of which are equal in lengths An equilateral triangle has 3 sides all of which are equal in lengths


What would a diagram look like that represents the statement If it's an equilateral triangle then it is isosceles?

Then it would be a false statement because an isosceles and an equilateral triangle have different geometrical properties as in regards to the lengths of their sides.


How can you look at the lengths of the sides of a triangle and determine what type of triangle it is by its sides?

If all 3 sides are equal: Equilateral Triangle If 2 sides are equal: Isosceles Triangle If all 3 sides are unequal/different: Scalene Triangle


What is the triangle that has the lengths of at least two sides?

An EQUILATERAL triangle has all three sides the same length. An ISOSCELES triangle has two sides with the same length. A SCALENE triangle has all three sides different lengths.


What triangle is formed with three sides of different lengths?

A scalene triangle. In a scalene triangle, there are no congruent sides or angles. In an isosceles triangle, at least two congruent sides and angles. In an equilateral triangle, all three sides and angles are congruent, with angles that always measure sixty degrees. Note: an equilateral triangle also classifies as an isosceles triangle, as it meets the definition of an isosceles triangle mentioned above.


When do three numbers not equal a triangle?

When one of the numbers is greater or equal to the sum of the other two, then you can't have a triangle with those lengths. there are isosceles and equilateral triangles equilateral - all 3 sides and angles are the same isosceles - 2 sides are the same but the third is diffrent