Originally Posted by Vinsento then what code should i used?? C code you wrote --by yourself-- based on the pseudocode presented. Message of the day: We're here to help you with problems in YOUR code, we are not here to write code for you.