Coders,
This code is to scan three values, a, b,and c, and calculate the area of a triangle. If the input is negative there needs to be a error, is the value underneath the sqrt is negative there needs to be an error. So the code compiles OK, but it seems to be caught in a loop when a negative...
Coders,
I have been working on this code for the last few days. I have the just of the code complete, yet one issue still arises. This code needs to calculate the area of a triangle. The sides a, b, and c are provided by the users and the sides are divided by 2, then that answer is calculated...
I have been working on the following code. I use the Unix gcc compiler, which compiles the code OK. Using Dev C++ just gives me an error indicating that the application must close. The error I get in gcc is 'segmentation fault', but using g++ I also get 'segmentation fault', after I run a.out...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.