I will assume you mean how to use the formatting in C for printf.
Please, check the manual here.
There is an example section near the bottom as well to help you better understand. Give it a read and if you have a specific question, ask away.
Good luck!