soumyanakarmi
soumyanakarmi soumyanakarmi
  • 01-05-2021
  • Computers and Technology
contestada

write a programme to input the values of two angle and find out the third angle of a triangle​

Respuesta :

usamariaz756
usamariaz756 usamariaz756
  • 01-05-2021

Answer:#include <stdio.h>

int main()  

{  

   int ang1, ang2, ang3; /*are three angles of a triangle  */

 

   /* Read two angles of the triangle from user separated by comma*/  

   printf("Input two angles of triangle separated by comma : ");  

   scanf("%d, %d", &ang1, &ang2);  

 

    ang3 = 180 - (ang1 + ang2);  /* Calculates the third angle  */

 

   printf("Third angle of the triangle :  %d\n", ang3);  

 

   return 0;  

}  

Answer Link

Otras preguntas

If there is property damage as a result of the collision, and you are unable to locate the owner, you should __________________________.
Completely factor the polynomial. 4x^2 20x 25
Embroidery is an example of which type of fiber craft? a. weaving c. basketry b. sewing d. paper making
2 propeties of copper
In most programming languages, before you can use any variable, you must include a ____ for it.
Find the first fourth and eighth terms of A(n)=-2•5^n-1
Gandhi’s nickname, mahatma, means enlightened one. great soul. happy one. peaceful soul.
In an exothermic reaction, an increase in temperature favors the formation of products. true or false.
Who is not a flat character in The Tragedy of Julius Caesar? Lepidus Mark Antony Messala Pindarus
The table below shows the number of hours some business people in two states spend in meetings each week: State A 21 23 24 22 24 25 23 23 22 State B 24 22 20