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
mart [117]
4 years ago
10

In a right triangle, the square of the length of one side is equal to the sum of the squares of the lengths of the other two sid

es. Write a program that prompts the user to enter the lengths of three sides of a triangle and then outputs a message indicating whether the triangle is a right triangle. If the triangle is a right triangle, output It is a right angled triangle If the triangle is not a right triangle, output It is not a right angled triangle.
Computers and Technology
1 answer:
Anna [14]4 years ago
3 0

Answer:

// here is program in C.

// include header

#include <stdio.h>

#include<math.h>

//main function

int main()

{

 // variables

 int x,y,z;

 int flag=0;

 // ask to enter the sides of triangle

 printf("enter the length of all sides of triangle:");

 // read the sides

 scanf("%d %d %d",&x,&y,&z);

 // check if square of any side is equal

 //to sum of square of other two sides

 if((x*x)==(y*y)+(z*z)||(y*y)==(x*x)+(z*z)||(z*z)==(y*y)+(x*x))

 flag=1;

 // if right angled triangle

 if(flag==1)

     printf("right angled triangle.\n");

// if not right angled triangle

 else

     printf(" not  a right angled triangle.\n");

   return 0;

}

Explanation:

Read the sides of the triangle and assign them to x,y,z respectively.Then check ((x*x)==(y*y)+(z*z)||(y*y)==(x*x)+(z*z)||(z*z)==(y*y)+(x*x)).If it true then set flag=1.After this if flag==1 then print triangle is right angled else not right angled.

Output:

enter the length of all sides of triangle:3 4 5

right angled triangle.

You might be interested in
The Central Processing Unit carries out the commands from programs running in...
prohojiy [21]

Answer:

the main memory to be precise

5 0
3 years ago
PLEASE HELP ME HELP ME NO IM NOT OKAY AND ITS NOT EASY FOR ME.....Vladimir is reworking an old slideshow. He needs to delete som
Mandarinka [93]

Answer:

Outline view

Explanation:

This is a formatted window that shows all text, headers, and titles in a popup on the left side of the screen. Slide master shows all the slides but includes slide details such as inserted images and smart art.

7 0
3 years ago
If you use the Justified option for a paragraph, the lines of text will __________.
saul85 [17]
The answer should be option A "<span>all be of equal length and line up at both margins." The justified option on Microsoft Word lines up the words at both margins, mainly used for types of writings and helped make the writing more neater or organized.

Hope this helps!</span>
5 0
3 years ago
A security risk to email is​ __________, which are fraudulent messages that prompt unwary users to reveal sensitive information
d1i1m1o1n [39]

Answer:

Option C is the correct answer for the above question.

Explanation:

Pishing is a type of attack which is used by the attacker to access the secured information from the system. It is used by the third person assuming for the system that he is the right use of the system and can access the information of the system.

The above question asked about the attack which can access the information to assume that he is the right user and give accessed to the network to been hacked. So the answer is phishing which is described above. Hence option C is the correct while the other is not because:-

  • Option A states about direct mail which is not a type of attack.
  • Option B states about instant messaging which is also not a type of attack.
  • Option D states about spam which is used to send the spam messages.
  • Option 'E' states about the mass mail which is used to send the lots of spam mail.
5 0
3 years ago
State and explain ten features of the standard toolbar as in computing.
Anastasy [175]

Answer:

Hi. I'm glad to help you.

Explanation:

1. New blank document: It helps the user to create a new blank document or sheet.

2. Open: It allows the user to open or find a file.

3. Search: It is used to find files, folders and webpages.

4. Cut: It removes the current selection to the clipboard.

5. Copy: It copies the selection to the clipboard.

6. Print preview: It shows how a file will look like when printed.

7. Insert hyperlink: This command allows the user to insert a new hyperlink or edit the selected hyperlink.

8. Zoom: Adjusts the size that the document appears on the screen.

9. Document Map: It displays the document map for the current document.

10. Format Painter: It copies the cell format allowing it be pasted elsewhere.

<em><u>Hope it helps. Please mark as brainliest. </u></em>

4 0
3 years ago
Read 2 more answers
Other questions:
  • Nadia's productivity at work is being hurt due to the large quantity of unwanted e-mail she receives. What steps can she take to
    8·1 answer
  • In the borders and shading dialog box where would you look to see if your border will have two sides
    11·2 answers
  • To use the mail merge feature in Access, the first step is to start the Microsoft Word Mail Merge Wizard.
    11·1 answer
  • Elisa and Josh need to access General Help. Elisa will press the F1 key. Josh will click on ? in the upper-right corner of the W
    14·2 answers
  • Your manager has asked you to write a program that displays the percentage of males and female in your class. The program should
    7·1 answer
  • Anyone wanna hop on 1v1.lol<br> party code : usfhb6
    12·2 answers
  • Imagine how the situation could be handled. Come up with as many ideas as possible: There's no one "right" answer! Then, highlig
    6·1 answer
  • What is the name of the most popular American computer repair shop?
    9·2 answers
  • Being technologically literate requires being able to ______. a. use advanced graphics manipulation tools (adobe photoshop) b. u
    6·1 answer
  • Where should the VPN concentrator be installed?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!