This is the solution of this problem in python: N=int(input())for i in range(1,N+1): print("%i %i %i"%(i,i*i,i*i*i))
No comments