Once again I direct your attention to what is happening (or not happening) inside the loop.
Type: Posts; User: Junky
Once again I direct your attention to what is happening (or not happening) inside the loop.
You are casting temp to an int which is resulting in a 0 being appended to the end of each line. If this is what you want then fine. If it is not what you want then you need to change what your print...
Look at exactly what is being printed inside the for loop.
I cannot see your entire code.
If your aim is to print out 12 values (one per month) for fives years then you will need to print 12 values per line and 5 lines. How many loops do you think are required?