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

The philosopher who arrived at certainty through a process of doubting all of his knowledge was
Who is the ancient philosopher who created specific rhetorical criteria for public speaking that are still used today?
What roles did the african american church play in their communities?
According to what you’ve learned, Jewish people in Europe a) were treated well and prospered in many different cities b) suffered a long history of discriminati
Starting at home Omar traveled up hill to the gift store for 30 minutes at just 10 mph he then traveled back home along the same path down hill at 30 mph what i
Will adding 3 different prime numbers result in a prime number?
Convert 8 1/4% to a decimal show the work
what are some good strategies for finding social support?
What is the y-intercept for y=3(x-5)(x+4)?
A being, who is a subject of moral concern and who possesses, in particular, a moral right to life.