C Program find the third angle of a triangle

C Program find the third angle of a triangle

Write a program in C to find the third angle of a triangle if two angles are given from user


#include 
int main()
{
 int a, b, c;

 printf("Enter two angles of triangle : ");
 scanf("%d%d", &a, &b);

 c = 180 - (a + b);

 printf("Third angle of the triangle = %d", c);
 return 0;
}