Your problem is that you increment i twice. So, it will be 0, then 2, then 4, then 6, which is greater than 5.
In order to fix it, simply remove the i++; line after the puts("Hello, World!"); or transform your for loop into a while loop.