508 - Print the Numbers
Print the Numbers
Time Limit: 1 sec
The Problem
Mr. Professor is famous for printing numbers. One of his technique is if you give an integer number N, he will write 1 – N lines and every line repeat the number three times.
Example
Given number, 3
Result
1 1 1
2 2 2
3 3 3
If he gives you the task can you solve?
The Input
The input file contains several lines. Each line contains a single integer N (0 < N <= 25). Input is terminated by EOF
The Output
For each line of input print the numbers in a separate line.
Sample Input
3
5
Sample Output
1 1 1
2 2 2
3 3 3
1 1 1
2 2 2
3 3 3
4 4 4
5 5 5
Problem Setter: Samia Safa Ahmed