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
yuradex [85]
2 years ago
15

Write a program that accepts the lengths of three sides of a triangle as inputs. the program output should indicate whether or n

ot the triangle is a right triangle. recall from the pythagorean theorem that in a right triangle, the square of one side equals the sum of the squares of the other two sides. use the triangle is a right triangle. and the triangle is not a right triangle. as your final outputs.
Computers and Technology
1 answer:
omeli [17]2 years ago
4 0

The code will have to obey the Pythagorean theorem that says square of the hypotenuse side is equals to the sum of the squares of the other legs.

<h3>How to write a code that check if a triangle is a right angle by using Pythagoras theorem?</h3>

The code is written in python.

def right_triangle(x, y, z):

    if x**2 + y**2 == z**2 or y**2 + z**2 == x**2 or z**2 + x**2 == y**2:

         print("it is a right angle triangle")

    else:

         print("it is not a right angle triangle")

right_triangle(6, 10, 8)

<h3>Code explanation</h3>
  • we defined as function named "right_triangle". x, y and z are argument which are the length of the triangle.
  • Then we check if the sides obeys Pythagoras theorem.
  • If it does we print a positive statement else we print a negative statement.

Learn more about python at: brainly.com/question/21437082

#SPJ4

You might be interested in
Write down the character of Morden computer​
Arturiano [62]

<em>The</em><em> </em><em>characteristics</em><em> </em><em>of</em><em> </em><em>a</em><em> </em><em>modern</em><em> </em><em>computer</em><em> </em><em>are</em><em> </em><em>:</em>

  • <em>Speed</em><em> </em>
  • <em>Accuracy</em><em> </em>
  • <em>storage</em><em> </em>
  • <em>Automation</em><em> </em>
  • <em>Communication</em><em> </em>
  • <em>Versatility</em><em> </em>
  • <em>Memory</em><em> </em>
  • <em>Reliability</em><em> </em>
6 0
2 years ago
BJP4 Self-Check 7.21: swapPairs<br><br> plsssss
Vedmedyk [2.9K]

Answer:

needs more expiation

Explanation:

add a worksheet to the question

6 0
3 years ago
Where is clipboards?
gavmur [86]
Clipboards are memory spaces specially made for copy and paste purposes. Sadly clipboards spaces can't be manipulated and can't be located. But there are applications that could fill in these clipboard problems such as Clipper Plus.
8 0
3 years ago
A __________network is useful for connecting a small network. campus area local area wide area system area
12345 [234]

WLAN (Wireless Local Area Network) helps you to link single or multiple devices using wireless communication within a limited area like home, school, or office building.

<h3>What is communication ?</h3>

It is said that communication is "an apparent remedy to the unpleasant divisions between self and other, private and public, and inner thought and outer world" (from the Latin communicare, meaning "to share" or "to be in relation with").

As this definition makes clear, it is challenging to consistently define communication because, in everyday usage, the term refers to a very broad spectrum of various behaviors involved in the spread of information. According to John Peters, the challenge in defining communication arises from the fact that it is both a universal phenomenon (because everyone communicates) and a distinct academic profession with institutionalized research.

To learn more about communication from the given link:

brainly.com/question/26152499

#SPJ4

5 0
2 years ago
How can you keep your files organized on your computer?
storchak [24]
Put them in alphabetical order
6 0
3 years ago
Read 2 more answers
Other questions:
  • Lana is trying to insert a table, but she does not like any standard table options that she is given. Which best describes what
    5·2 answers
  • On the UB-04 claim form, the type of bill is identified by a four-digit numerical code. The first digit is a leading zero, what
    10·1 answer
  • Using a subject directory, you locate a particular topic by clicking links through different levels. a. True b. False
    10·1 answer
  • A web ______ is a computer that delivers requested webpages to your computer or mobile device.
    7·1 answer
  • Write a C function which mimics the behavior of the assembly language function below. Note that this time, the assembly language
    10·1 answer
  • The LPN/LVN cares for an older client admitted to the hospital for treatment of a fractured femur. The LPN/LVN notes the client
    10·2 answers
  • In PKI, the CA periodically distributes a(n) _________ to all users that identifies all revoked certificates.
    13·1 answer
  • Cryptocurrencies are digital tokens that are created independently of government money, and can act as a medium of exchange and
    15·1 answer
  • What principle of animation helps facial features to be noticed?
    7·2 answers
  • Two negative reviews and no positive reviews is enough to consider the website to have a negative reputation.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!