Computer Science, asked by ggbx5457, 2 months ago

write a program in c++ to enter two angle of a and find 3rd angle

Answers

Answered by ғɪɴɴвαłσℜ
1

\sf{\huge{\underline{\green{Answer :-}}}}

#include <stdio.h>

int main()

{

int x, y, z;

/* 35°,78° */

printf("35°,78: ");

scanf("%d%d", &35, &78);

/* x the third angle */

x = 180 - (35 + 78);

/* Print value of the third angle */

printf("Third angle of the triangle = %d", x);

return 0;

}

_____________________________________

Output :-

The two angles a & b are 35 & 78

The third angle of triangle 67

Similar questions