Decimal to binary converter

You'll learn more from seeing the answer in this case, than just abandoning it...

for (i = 0; i <=8; i++)