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