Problem 5: Hero's Formula is A method for calculating the area of a triangle when you know the lengths of all three sides. Let a, b, c be the lengths of the sides of a triangle. The area is given by:A= pp-ap-b(p-c) | wherep= a+b+c2 | | Write a C-language code to calculate area of triangle using above method. Take the three lengths of the triangle from the user and display the area that your program calculates.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What are default parameters? How are they evaluated in c++ function?

0 Answers  


How const int *ourpointer differs from int const *ourpointer?

0 Answers  


why c++ is not called strictly d super set of c?

3 Answers   Satyam,


Define upcasting.

0 Answers  


What is the use of volatile variable?

0 Answers  






What are the advantages of c++? Explain

0 Answers  


Is arr and &arr are same expression for an array?

0 Answers  


What is a Default constructor?

1 Answers  


What is the most powerful coding language?

0 Answers  


Describe run-time type identification?

1 Answers  


What is the use of this pointer in c++?

0 Answers  


What is function prototyping?

0 Answers  


Categories