Changed printf to putchar calls, so the code will look more optimized even though this is what happens in compiler anyways. Just to be more obvoious.