Why is my calculator calculating wrong?

solved.
Last edited on
printf("The answer is= %+f \n", &result);
for printf, & is not need.
thank you! i knew that you didnt have to put & when you were printing a string, but finally it works.
Topic archived. No new replies allowed.