Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i have an assignment in which i have to write a program which uses Herons formula to caculate the area of a triangle in C++.
i have an assignment in which i have to write a program which uses Herons formula to caculate the area of a triangle in C++. Below is the code i have so far. I am not sure what is wrong with it, there are no errors, but when i input the numbers, i get an incorrect area for my output. Is anyone able to point me in the right direction of where I went wrong?
include Kiostream> Sinelude Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started