This code is C
printf(); in the first part of my if statement is not printing the second number i have, but a different one. For example i'll store 20 in it but printf(); will print 237005 when it comes time to print my variable value.
I have commented out my function add(); to see if that helps but it does not, i have read over the code multiple times and i do not see any problem with it. I am using the correct format specifier for the number i'm wanting to print out.