Use %dl and %dL for other int-formats.
Still i couldn't succeed. this is the code i have written. What's my mistake
it's working. thanks