write a program to enter 3 sides of a triangle and check whether it is a scalene triangle in QBASIC program
Answers
Answered by
0
Explanation:
CLS
INPUT ” The sides of the triangle “, a, b, c
IF a = b AND a = c THEN
PRINT ” It is Equilateral”
ELSEIF a <> b AND a <> c THEN
PRINT ” It is Scalene”
ELSE
PRINT ” It is Isosceles”
END IF
END
Similar questions