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

A pebble drops from a balcony that is 80 feet above the ground. The pebble lands on the top of a sign that is 16 feet high. The function y=80−16t2 represents t
What type of animal was used to get supplies to the front line as they were quick and hard to shoot. a. camels c. pigeons b. dogs d. horses Please select the be
When the boat has traveled 7 meters, the height of the barnacle is approximately: -1 m -0.657 m 0.657 m 1 m
How does Mercutio feel about Romeo then? How does Romeo feel in act 3
Solve for f. –7f − 9 = 9 − 4f f =
Your best friend Pronoun: A. Yo B. Tú C. Èl D. Ella E. Usted Ab. Me Ac. Te Ad. Le
10, 25, 55, ____, 235
Examine a student's final answer: "ΔH = - 13 kcal." The - 13 kcal means this reaction is _
Multiply Mentally: 4.527 • 10(2)
How are computers being used to help decipher the Indus Script?