Ex1-9. Program to copy input to output