Your problem is that you have to change:
printf("%");
to
printf("%%");
Or you could use ASCII code and write:
printf("%c", 37);
:)
2.1m questions
2.1m answers
60 comments
57.0k users