i need help for coding a program which is read N and will do following:
if n numbers given program will print n, n^2, n^3.
For example if user (or variable) 5; program output will be like this:
n=5
output:
2 4
3 9 27
4 16 64 256
5 25 125 625 3125
note: we should not use pow function.
can anyone help? Thanks.