Template for using scanf in C programs