Printf and scanf exercise