Uses scanf(), fgets(), puts() and related functions