After I press enter after it says enter second number and I do it automatically closes even though I have system("pause"); and im running windows vista 32-bit.
@ ty98: Please be more specific in your question, are you asking what the link that ciphermagi posted is supposed to accomplish? Or are you asking the OP what they are trying to do?