First off, when posting code, make sure you do either "copy as text" from your IDE, or "paste as text" in your browser.
Your whacky colour scheme makes a complete mess of the board formatting.
From the question, it seems you want to replace
> guessArray[0] = guess / 1000
with
That is, if you're looking to convert a string "1234" into an array of integers 1,2,3,4Code:for ( i = 0 ; i < 4 ; i++ ) guessArray[i] = ans[i] - '0';