QBASIC – Area of a triangle when all three sides are given

Below is the QBASIC program to calculate the area of a triangle when all three sides are given. Explanation: First the formula: Area = ((s*(s-a)*(s-b)*(s-c))^(1/2)). Let’s break and understand the formula. The formula has frequent use of s variable. Here, s is the semi-perimeter of the triangle, calculated using formula; s = (a + b + …

QBASIC – Area of a triangle when all three sides are given Read More »