Unexpected output: If output shown contains unexpected numbers and/or random numbers, view the memory to see what each cell contains.
Continuously running: If the program does not stop for a while, it is best to stop it. Check in the code where you may gone wrong, this usually pertains to a loop that is never broken out of.