3. Draw a flowchart and write a program in QBASIC to accept three angles of a triangle.
The program will check whether the triangle is possible or not.
Answers
Answered by
2
Explanation:
Input "FIRST ANGLE"; A
Input "SECOND ANGLE"; B
Input "THRID ANGLE"; C
Let SUM = A + B + C
If SUM = 180 Then Print "TRIANGLE IS POSSIBLE" Else Print "TRIANGLE IS NOT POSSIBLE"
End
output
FIRST ANGLE? 40
SECOND ANGLE? 80
THIRD ANGLE? 30
TRIANGLE IS NOT POSSIBLE
Attachments:
Similar questions
Science,
16 days ago
Math,
16 days ago
English,
1 month ago
Computer Science,
9 months ago
English,
9 months ago