#第二课课后作业 #课后作业 1+2+3....+N x=0 print("请输Y的值") Y=int(input()) for i in range(0,Y): x=x+(x+1) print("最后结果为%d"%(x))