Header Ads

Header ADS

Write a C program to enter two angles of a triangle and find the third angle.

 

#include <stdio.h> 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; }

No comments

Powered by Blogger.