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
HELP
Aleks [24]

Answer:

If a good friend comes to me for advice in pursuing a music career. With my knowledge of digital technology and the performing

arts, my advice to use digital technology to help build her career by <u>Delivering service to clients .</u>

Explanation:

<u>There were several reasons for this: </u>

• Being able to access work platforms and resources removed the need to travel back

to office bases because remote access allowed the completion of administrative

tasks where the practitioner was working.

• Working with clients in rural and isolated areas can prove difficult in terms of meeting

clients face to face and digital solutions helped to resolve this. This is because more

clients can be seen remotely than when practitioners must travel to see them.  

8 0
3 years ago
What are point to consider while running occupation?​
mart [117]

Answer:

if you mean running a business, i think you should have a budget and enough inventory depending on what you're selling.

Explanation:

8 0
3 years ago
Read 2 more answers
Terrence smiles at his customers, helps his cowokers,and stays late when needed. What personal skill does Terrence demonstrate
adell [148]

Answer: Humility,kindness

Explanation:

5 0
3 years ago
Read 2 more answers
A user of the system
iragen [17]

Answer:

ummm what system. have to be more specific ^^

Explanation:

8 0
3 years ago
How can e-group help in collaborating online​
tresset_1 [31]

Answer:

Collaborative learning is an e-learning approach where students are able to socially interact with other students, as well as instructors. ... Collaborative learning is based upon the principle that students can enrich their learning experiences by interacting with others and benefiting from one another's strengths.

Explanation:

inclusion of collaborative activities in an online course leads to positive student performance outcomes. Collaborative group interactions facilitate active learning, shared knowledge, and promote social interaction and a supportive eLearning community

4 0
3 years ago
Other questions:
  • Someone who wants the credentials of skilled training, but in less time than a four-year degree should consider
    11·1 answer
  • Suppose that a client performs an intermixed sequence of (queue) enqueue and dequeue operations. The enqueue operations put the
    5·1 answer
  • Which one of the following may be used as an input as well as an output device? A. Fax machine B. Scanner C. Printer D. Voice re
    9·1 answer
  • Quantas calorias os adolescentes devem consumir diariamente?
    14·1 answer
  • list the sixth external parts of a computer system and identify which are output and which are input devices
    14·2 answers
  • What term identifies the physical interface between a computer and its peripherals?
    5·1 answer
  • I WILLLLL CHOOOOSEEEE YOU ASSS BRAINLESTTT!!! , HELLPPPPP MEEEE DUEEEE TODAYYYYYY!!!!
    15·2 answers
  • Technician A says that oil for the rod bearings comes from splash off the crankshaft. Technician B says that lubrication to the
    14·1 answer
  • To type a small letter "z", you would use the right little finger. (5 points)True False
    9·1 answer
  • Web design and development tools
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!