how to only show tenths place in c

C
printf("\0.1f");
Source

Also in C: