Try outputting the values you input to see if they are correct.
Since you are probably using, as DeanMSands3 supposes, Turbo (I'm sure he's correct) find out what the largest integer is you can have in your compiler.
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
I_m_rude commented: damn funny comment! +2
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
happygeek commented: indeed +11