Use putchar instead of printf