The best way to get help is:
1. Describe the problem.
2. What does the program do?
3. What output do you get?
4 What output did you expect?
5. Why wasn't the output acceptable?
It doesn't have to be a long explanation but it helps to help you.
Otherwise it is really just a mindreading exercise.
At the moment your program spits out lines of numbers. Lots of programs do that. :(