To find the third angle of a triangle when two angles are given. (Qbasic Code)

CLS

INPUT "Enter the first angle of triangle in degrees"; a

INPUT "Enter the second angle of triangle degrees"; b

c = 180 - (a + b)

PRINT "The third angle of the triangle is"; c; "degrees"

END

CLS

INPUT "Enter the first angle of triangle in degrees"; a

INPUT "Enter the second angle of triangle degrees"; b

c = 180 - (a + b)

PRINT "The third angle of the triangle is"; c; "degrees"

END