So, for the exercise where you write a program that solves the quadratic equation, my program won’t execute. I know the code has no bugs because I copied it into another coding website that runs C++ and it worked fine, so I’m not sure why it won’t work here. Here’s the code:
Hello, @beta5554413037. Welcome to the forum!
Your code as you’ve posted it is incomplete:
The reason is that it isn’t properly formatted for a post in the forum. Any time you need to post code please follow these instructions:
If you will reply with your code formatted using the </> button, and include a link to the specific exercise you are working on, I’ll see what I can do.
Besides the missing includes, copy and pasting code could cause issues with ascii characters not being recognized especially double quotes. Furthermore just because it was on a coding website doesn’t at all mean that it is correct, efficient or safe.
(bb - 4ac)) / (2a);
That bit of code looks absolutely wrong