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

What is 1 3/10 multiplied by 18??
Isaiah puts a 10 gram weight on a pan balance.how many 1-gram weights does he need to balance the scale
Hiroto’s texting plan costs $20 per month, plus $0.05 per text message that is sent or received. Emilia’s plan costs $10 per month and $0.25 per text. Using the
why do leaves on trees appear to be green?
What is 9.33 as a fraction in simplest form
how do you figure out math problems
What is "the richness of the promise" that the Statue of Liberty represents? What are two "promises" that has not run out?
Choose the correct conditional tense form of the verb in parentheses. Nosotros (hacer) el trabajo. haría harías haríamos harían I cannot figure this one out.
What is (x 3) - (5x-2)?
In Beowulf, how does the character of Hrothgar compare to Beowulf’s?