admin@onlinelearningcenter.in (+91) 7 999 01 02 03

Area of a triangle using Heron's formula

Sunita Chhetry
110 Posts

WAP to calculate and display the area of a triangle by accepting value of three sides. Use Heron’s formula area: S= s(s-a) (s-b) (s-c) s= (a+b+c)/2

Eg:

Input

A=10 b=20 c=30

 

Output=30

Area=30(10+20+30=60/2=30)

Published By : Sunita Chhetry
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments

Jquery Comments Plugin