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

why is important to consider how earth how began when discussing what is happening on earth now?
what is 2 times 2I need help
Between which two integers does square root 120 fall?
Erin decided to divide 1,653 by 27 using partial quotient with multiples of 20. What are all the partial quotients Erin should show in her work?
T object]user: which of the following is not a benefit of safety and health programs? a. improved morale and productivity. b. increased efficiency by bypassin
How many children, mainly in africa and southeast asia, do not get enough vitamin a?
What 3 words are the start of every scale
What is the area of the rectangle? 40 Units squared 45 Units squared 50 Units squared 55 Units squared
Find the zeros of the polynomial function f(x)=x^3-2x^2-8x
What two sums are equal to 3 3/4?