Write a C# program to enter three angles of a triangle and check whether triangle is valid or not (Hint: summation of triangle angles = 180)
Answers
Answered by
0
Answer:
see the explanation
Explanation:
#<includestdio.h>
void main()
{
float angle 1, angle 2, angle 3,sum=0;
printf ("enter the angle");
scand("f%f%f%",&angle1,&angle 2,& angel 3);
sum=angle1+angle 2+angle 3;
if(sum=180)
printf ("shape is triangle");
else
printf (" shape is not triangle");
}
Similar questions