Copier
Time limit1sMemory limit1024 MB
The task reads n numbers and prints each one twice on its line, separated by a space.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
Your copier broke down last week, and you need to copy a list of numbers for a class project due tomorrow! Luckily, you can use your computer to copy the numbers for you. Given a list of numbers, each on their own line, print out the number, a space, and then another copy of the number.
Input
The first line contains a single integer , the number of numbers to follow. The next lines each contain a single number.
Output
For each of the lines, print the original number and a copy of the number, separated by one space.