Problem1532--C Programming Practicals 2 problems-8

1532: C Programming Practicals 2 problems-8

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 970  Solved: 420
[Submit] [Status] [Web Board] [Creator:]

Description

Write a C program to print an integer, its square and cube in a line, starting from 1 to number n which is input from the user.

Input

Input an integer: 5

Output

1 1 1 2 4 8 3 9 27 4 16 64 5 25 125

Sample Input Copy

5

Sample Output Copy

1 1 1
2 4 8
3 9 27
4 16 64
5 25 125

Source/Category

109