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

The great cooling effect produced by water evaporating comes from its high? A conductivity b specific heat c lantent heat D transparency
Pls pls pls help me on this math! Will mark brainliest
what does it mean when the correlation coefficient has a positive value?
explain the meaning of moral dilemma and give an example of one​
Nuclear energy is considered to be one of the most environmentally friendly sources of energy. Compared to traditional sources of energy such as the combustion
Which factor affecting metamorphic process is most likely to cause foliation in a rock? A. Presence of water  B. Temperature  C. Pressure  D. Time ​
Need help !!!!! ASAP
What percent of a dozen is 3
what are the labels and answer
Which equation represents a parabola that opens upward, has a minimum at x = 3, and has a line of symmetry at x = 3? A. y = x^2 -6x + 13 B. y = x^2 + 6x + 5 C