tags:

views:

124

answers:

4
+8  A: 
printf("A: %.2f%%", pc);
KennyTM
Great, thanks !
Kern
+1  A: 

just double the '%' in the format string and it will print '%'

HeDo
A: 

%% will output % using printf. Check the example at the end of page here

Praveen S
+1  A: 

For future printf reference, type:

man 3 printf

on any linux command prompt. It can do a LOT of crazy stuff that most people just aren't aware of.

Rannick