Programming Fundamentals - Program 9-Find the Area and Perimeter of Triangle - C++ Basics - Sea of C Programming Fundamentals - Program 9
Find the Area and Perimeter of Triangle
Area =( Length * width ) / 2
Perimeter is the sum of 3 sides of triangle but it has a Condition that if the sum of Side 1 (a) and Side 3 (c) is greater then Side 2 (b) then we can sum up the perimeter otherwise it would be wrong to calculate the perimeter by direct sum of a, b and c.

0 Comments