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

Which operator cannot be overloaded c++?

0 Answers  


If you had the following code: int x = 23; int *y; y = &x; The instruction y++; does what?

2 Answers  


write a c++ program that gives output 4 3 4 2 3 4 1 2 3 4 using looping statement

4 Answers  


Types of storage and scope of each type

2 Answers   CA,


Is ca high or low level language?

0 Answers  






Does c++ have finally?

0 Answers  


What is pointer to array in c++?

0 Answers  


Should the member functions which are made public in the base class be hidden?

0 Answers  


Which programming language is best to learn first?

0 Answers  


What are the various operations performed on stack?

0 Answers  


What is c++ 11 and c++ 14?

0 Answers  


Brief explaination about #include<iostream.h>, cin and cout

3 Answers  


Categories