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
Answer:
Hi!
The correct answer is the a.
Explanation:
The Moore's law is an a empirical law that Gordon Moore predicted doing some observations about how the density of the transistors on a integrated circuit was increasing over time.
For example, this law state that if you have an integrated circuit with: 1000 transistors in 1980 then in 1981 and six months later you will have the same integrated circuit with 2000 transistors, and so on..
- Jan 1980: 1000 transistors.
- Jul 1981: 2000 transistors.
- Jan 1983: 4000 transistors.
- Jul 1984: 8000 transistors.
And that's the reason because its cost will fall too.
Answer:
Code completion.
Explanation:
The NetBeans is an integrated development environment framework of java language. Code completion is the features of NetBeans which is easier to complete the code This feature is known as smart code features because it completes the code in a very easy manner. The Code completion features are needful when we have to fill the missing code or program in the java language.
Hence Code completion. is used to enter the name into the code in the NetBeans.
That computer network component is router. It's possible to connect printer to it. Other computer and any other devices.
Answer:
chosen ciphertext
Explanation:
Chosen ciphertext attack is a scenario in which the attacker has the ability to choose ciphertexts C i and to view their corresponding decryptions – plaintexts P i . It is essentially the same scenario as a chosen plaintext attack but applied to a decryption function, instead of the encryption function.