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
Is atoi safe?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
Show the declaration for a static function pointer.
What is c++ 11 and c++ 14?
Can you pass an array to a function in c++?
What are the advantages of using friend classes?
How do you declare A pointer to function which receives an int pointer and returns a float pointer
a class that maintains a pointer to an object that is programatically accessible through the public interface is known as?
How is new() different from malloc()?
Design a program to input a date from user in the form day/month/year (e.g. 2/6/2000) and report whether it’s a valid date or not. The program should take account of leap years. You will need to know that a leap year is a year that is exactly divisible by 4, except that century years are only leap years if they are divisible by 400.
Write a program which employs Recursion
Write a program to calculate the following i want a c++program for this condition 1+4+9+16+….+100 Like this (1^2+2^2) Hint use function pow(a,b)