Please read the posting guidelines. These explain how to use code tags.
Then repost your code with code tags so that it is readable.
Also you've only given us half the information. What input did you give the program?