if(trueAnser==answer)
cout<<"correct";
else
cout<<"wrong, the correct answer is "<<trueAnswer;
my issues is:
why does the float variable trueAnswer rounds numbers of after 4 decimal places and sometimes it rounds of after 5. This makes it impossible to compare trueAnswer and answer