Problem Description
Write a program to calculate the perimeter of a triangle using Heros formula
Use the Following Formula:
s = (a+b+c)/2
area = sqrt(s*(s-a)*(s-b)*(s-c))
Input and Output Format:
Refer sample input and output for formatting specification.
All float values are displayed correct to 2 decimal places.
All text in bold corresponds to input and the rest corresponds to output.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.