Take input of the three angles of a triangle and print whether the triangle is valid or not.
pls tell because I have to do this In my project and pls ,Tell in phone qbasic form like cls
input this and that
and pls also tell in algorithm form I give you points
Answers
Answered by
0
Answer:
Logic to check triangle validity if angles are given
Input all three angles of triangle in some variable say angle1 , angle2 and angle3 . Find sum of all three angles, store sum in some variable say sum = angle1 + angle2 + angle3 . Check if(sum == 180) then, triangle can be formed otherwise not.
Answered by
2
Draw a line segment BC of any length.
Taking B as the center, construct a semicircle that bisects BC at point P.
From P, construct three arcs dividing the semi-circle into 3 equal parts that are 60º each.
Mark the points as x and y where the arcs bisect the semi-circle.
Similar questions