Pass time directly to print function
Fix output of 3rd and 4th programs