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 an operator in c++?

0 Answers  


Write a program that will count the number of digits in an input integer up to value MAX_VALUE (2147483647). Thus, for an input of 5837 the output should be 4 digits Make sure that your program works for the numbers 0, 1, and 10. For the number 0, the output should be 1 digit

2 Answers  


Define a pdb file.

0 Answers  


What is the type of 'this' pointer? When does it get created?

0 Answers  


What is a container class? What are the types of container classes?

1 Answers  






Which is not a valid keyword a) public b) protected c) guarded

0 Answers  


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

0 Answers  


Does c++ support exception handling?

0 Answers  


Do vectors start at 0 c++?

0 Answers  


What are pointers used for c++?

0 Answers  


What is the difference between method overloading and method overriding in c++?

0 Answers  


Is c++ an integer?

0 Answers  


Categories