scanf() does not output anything, it reads from the standard input.
Maybe can you share some code or explain in more detail what you're after?
Here's a silly example using scanf() and printf():
printf("How old are you? ");
if (age >= 18)
printf("You are legally and adult.\n");
printf("You are legally not an adult yet.\n");