Computer Studies

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.

QBASIC: Conditional Statements

37 Likes

Answer

Flowchart

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. Class 7 ICSE Understanding Computer Studies

QBASIC Program

Cls
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

Answered By

24 Likes


Related Questions