Yout program basically looks like this
Code:
if  (correctans==answer) { // this block if answer is correct
    ..... 
}
else { // the next if is not necessary because it's already shure that the answer is not correct
    if ( correctans!=answer) { // this block will be entered 
    
    }
    else { // cannot be entered 
    
    }
}