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

Of the students on your class, 46% are left handed. What fraction of the student are left handed? *
Help pls Complete the description using the correct present continuous form of the verbs in the box. Sometimes you need the negative. Use some of the verbs mor
what is a city name that is in texas
Huixians father gives her 120 doller her monthly allownce if she spends dollar 5 each day how many money left in 3 days 6 days 10 days
what is the slope if i only have the two points (9,8) and (3,4)
Daniel deposits a certain sum of money in a bank. If the simple interest rate of the bank decreases from 3.75% per annum to 3.5% per annum, Daniel's interest wi
In very simple terms what does an accessory and a principle mean in Law? ​
Select the correct answer. Consider these functions: px) = 5x + 2 g(x) = x2 - 1 What is the value of g(4-1))? A. 2 B. 00 C. 22 D. 48
When did George Washington die?
need help ASAP please):