Posts

Showing posts with the label prints the product of n given numbers

prints the product of n given numbers

 prints the product of n given numbers:     n=int(input())      l=[]      r=1      while(n>0):          l.append(int(input()))          n-=1      for i in l:          r*=i     print(r)