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

Does H₂O have a subscript?
PLEASE HELP!!! What is the correct order of dates from earliest to latest? A. 1456 CE, 15 AD, 765 BC, 1983 BCE B. 1983 BCE, 765 BC, 15 AD, 1456 CE c. 15 AD, 145
Caruso, inc. has an inventory turnover rate of 8 times. if its cost of goods sold is $150,000, then
The product of 19 and a number , subtracted from the reciprocal of the number cubed
The first time scientists actually saw an atom was
From the origins of the human species some 3 million years ago until about the year 1800, most people in the world lived in which type of societies
The theme of The Bourgeois Gentleman is the foolishness of pretense. True False
1Jesse will graduate from high school and go to college. 2His younger brother will be going to college as well. 3After they have graduated, all of the Miller bo
2x7+2 ? What does x =
The capital of the islamic empire from 661-762 was