• C

printing the % sign?

I just want to know how to print the % as a text?
Who is Participating?
Jaime OlivaresSoftware ArchitectCommented:
if you are using printf:

printf("Here is the percentage sign: %%");

if not:

puts("Here is the percentage sign: %");
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.