SyntaxFix
Write A Post
Hire A Developer
Questions
Your printf needs a format string:
printf
printf("%d\n", x);
This reference page gives details on how to use printf and related functions.