write a program in c++ to enter two angle of a and find 3rd angle
Answers
Answered by
1
#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
Math,
1 month ago
Social Sciences,
1 month ago
History,
3 months ago
Math,
3 months ago
English,
9 months ago