You continually write different values to the same buffer, and don't print it. Oops that was already mentioned... so print it as you go along. There is no need to accumulate characters in a print string as they will be printed consecutively anyway...
it's only needed if you are saving it for some other purpose, that you would need to construct a string containing all the values.