it's working to the point of it's doing exactly what you told it to. It helps you, if you put printf in your code here and there where you're working on variables with values so you can see what is really going on. then remove them after you know it is doing not what you told it to necessarily but that it is doing what you want it to do instead.
Code:
Hello,32 32 54
Hello,32 32 54
Hello,32 32 54
Hello,32 32 54
Hello,32 32 54
Hello,32 32 54
Hello,32 32 54
Hello,32 32 54
Hello,32 32 54
Hello,32 32 54
Hello,32 32 54
Hello,32 32 54
Hello,32 32 54
Hello,32 32 54
Hello,32 32 54
Hello,32 32 54