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


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

Share :

Facebook Twitter
Back To Top

facebook

Powered by Blogger.