Header Ads

Header ADS

1143.Squred and cubic in python

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

Powered by Blogger.