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

how much is 20 plus 10
What is cuneiform writing?
Help please and thank you
why is the geographic location of Israel important
As a water quality assurance employee for your local Aqua America Inc Branch you record a drop in water levels from 28 ft to 7 ft at your Reservoir what is the
Does 14.2857143 round to a whole number
4. Ribosomes are made up of _____.
a building that is 20 meters tall casts a shadow that is 5 meters long. at the same time a tree casts a shadow that is 8 meters long. how tall is the tree?
The Six members of the homecoming decorating committee want to make 525 people flowers for the homecoming dance each flower takes 4 1/2 minutes to make about ho
when selecting a savings account, you should look at the following factors except ____?A. Annual percentage yieldB. feesC. minimum balance D. interest threshold