Quadratic function exercise


Hello there! Can someone please help me to look over my code? My code doesn´t have any errors and looks like the solution. however, it returns wrong numbers.

It’s your order of operations 24/2*3 != 24/6 so you get different answers from what you wanted. Therefore it should be (2*a).

Note you can also use pow() for exponents and such.
Also note you can always quick test things on repl.it to get idea of how things are behaving in c++.