My code is outputting what is required of it, but when it is run the function output is being placed at the beginning of the cout<< statement and where it is supposed to be is giving a NaN error.
I have checked for uninitialized variables and everything seems correct to me so I don't understand why my output is having such issues.
Any ideas on what's wrong?
output:
" 2The larger of 1 and 2 is nan
2The larger of 2 and 1 is nan
Process returned 0 (0x0) execution time : 0.050 s
Press any key to continue. "