1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
gogolik [260]
2 years ago
5

write a program in python to input 3 sides of a triangle. check if the triangle is equilateral, isosceles or scalene. use logica

l operator as required​
Computers and Technology
1 answer:
hjlf2 years ago
6 0
<h2>Type of Triangle - Python</h2>

In Geometry, a triangle is a three-sided polygon with three edges and three vertices. A triangle with vertices A, B, and C denoted ∆ABC.

<h3>Equilateral Triangle</h3>

A triangle is said to be an EQUILATERAL TRIANGLE if all the sides are equal in measure.

<h3>Isosceles Triangle</h3>

A triangle is said to be an ISOSCELES TRIANGLE if any two sides are equal in measure.

<h3>Scalene Triangle</h3>

A triangle is said to be a SCALENE TRIANGLE if none of the sides are equal in measure.

<h3>Here's our program:-</h3>

a = float(input("Enter the length of the first side of a triangle: "))

b = float(input("Enter the length of the

second side of a triangle: "))

c = float(input("Enter the length of the third side of a triangle: "))

if (a == b and b == c and c == a):

print("Equilateral Triangle.")

elif (a == b or b = c or c == a):

print("Isosceles Triangle.")

elif (a != b and b !=c and c != a):

print("Scalene Triangle.")

<h3>else:</h3>

print("Invalid Input.")

You might be interested in
What is 38 - -93 + 2 x 4.6?<br> and what’s 9,220 - -2.3 x U
Degger [83]

Answer:

the first equation is 140.2

what's the last eqaution U???

Explanation:

7 0
3 years ago
import java.io\.\*; import java.nio.file\.\*; public class TestFileReader { public static void main(String[] args) { Path p = Pa
Charra [1.4K]

Answer:

The delimiter use is "::".

Explanation:

The Java inbuilt String.split( ) function is use to split a String into an array of String.

The split( ) takes delimiter as arguments/parameter which determines at which point the string is to be broken down into different part/token.

From the above code snippet;

Each line in the file a.txt that is not null is splitted using the statement below:

String[ ] v = line.split("::");

The line is splitted using "::" as delimiter and the resulting array is then assigned to the variable 'v'.

For instance, a line in the file could take the form:

John::Smith::Music

When it is splitted,

String lname = John;

because lname make reference to index 0 of the array.

String fname = Smith;

because fname make reference to index 1 of the array.

String dept = Music;

and dept make reference to index 2 of the array.

6 0
3 years ago
Why is Internet fraud becoming increasingly common?
Nikitich [7]
The internet has billions of users, and is gaining more everyday. As people gain more and more technological resources, it becomes easier for them to steal people’s information.
7 0
3 years ago
A human subject’s photographs show two catchlights in each eye that are unwanted by the photographer. What is the most likely ca
Sphinxa [80]
A human subject's photographs show two catchlights in each eye that are unwanted by the photographer. what is the most likely cause of this problem? the fill light is too strong. the main light is too high.
7 0
3 years ago
Which sentence is correctly punctuated? WILL GIVE YU MONEY GIVE ME YOUR CASH APP PLS
Genrish500 [490]
The third one is best in me owns opinion
3 0
3 years ago
Read 2 more answers
Other questions:
  • What is the primary purpose of a business plan? To file for incorporation To help you identify your goals and plan how you will
    6·1 answer
  • Why is fluency in information technology becoming increasingly important for many college majors?
    9·2 answers
  • What type of program installs and gathers personal information, including password and account information, from a computer with
    9·1 answer
  • Given a number count the total number of digits in a number
    12·1 answer
  • Que significa DESFRAGMENTAR EL DISCO DURO?????
    14·1 answer
  • 1 : What format would you apply to give an entry the appearance of 12-Mar-2014
    8·1 answer
  • Dash is a collection of sequentially arranged slides put together in the from of a file​
    8·1 answer
  • …….. and ……...are called binary digits. (Computer Science)
    13·2 answers
  • Explain input device​
    9·2 answers
  • Help I will mark brain list I promise!!
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!