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

SOMEONE HELP QUICK PLS The point (-5, 10) undergoes a translation of 10 units right and 5 units down. What are the coordinates of the new point? A. (-10, 15) B.
A natural disaster is an example of what type of density factor? A. density dependent B. limiting factor C. density independent
Please help me asap!
When we are given a linear function, how is one way we can graph it
Which of the following represents the greater concentration? 1. 5 ppm 2. 5%
Tell us about personal problems or challenges from the past that have interfered with your education and what steps you have taken to overcome them
Hi I just got unbanned and I am happy take my points
Verify the identity. [tex]cos 4u = cos^{2} 2u - sin^{2} 2u[/tex]
What is the slope of the line that passes through the points (0, -15) and (-16, -20)?​
Which graph shows the relationship between the number of tigers and the total number of square feet of space?