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
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)