Saturday, January 19, 2019

URI 1145:: SOLUTION

URI Online Judge | 1145

Logical Sequence 2

Write an program that reads two numbers X and Y (X < Y). After this, show a sequence of 1 to y, passing to the next line to each X numbers.

Input

The input contains two integer numbers X (1 < X < 20) and Y (X < Y < 100000).

Output

Each sequence must be printed in one line, with a blank space between each number, like the following example.
Input SampleOutput Sample
3 991 2 3
4 5 6
7 8 9
10 11 12
...
97 98 99



[WAIT]
     First of all, think yourself that you have tried enough for the problem. If you did not please read the program once. REMEMBER one thing, just believe in yourself.....YOU CAN.....YOU KNOW....



See the ANSWER here...

No comments:

Post a Comment