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 is the word you will use when defining a function in base class to allow this function to be a polimorphic function?

0 Answers  


What is the use of static functions?

10 Answers   Symphony,


Do the parentheses after the type name make a difference with new?

0 Answers  


Differentiate between an inspector and a mutator ?

0 Answers  


What is purpose of new operator?

0 Answers  


give me an example for testing a program showing the test path .show how the test is important and complex.

0 Answers   TCS,


What is the extension of c++?

0 Answers  


Explain static and dynamic memory allocation with an example each.

0 Answers  


What is c++ programming language?

0 Answers  


what is pulse code modulation?

2 Answers   Wipro,


What does the nocreate and noreplace flag ensure when they are used for opening a file?

0 Answers  


How would you represent an error detected during constructor of an object?

1 Answers  


Categories