Saturday, January 19, 2019

URI 1143:: SOLUTION

URI Online Judge | 1143

Squared and Cubic

Write a program that reads an integer N (1 < N < 1000). This N is the number of output lines printed by this program.

Input

The input file contains an integer N.

Output

Print the output according to the given example.
Input SampleOutput Sample
51 1 1
2 4 8
3 9 27
4 16 64
5 25 125



[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