Show how you tried to use printf. Also, please post code without line numbers, and please use code tags when posting code.