SHARE
TWEET

Untitled

a guest Sep 22nd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input())
  2. x = float(input())
  3.  
  4. sum = float(input()) * x
  5. i = 1
  6. while i < n:
  7.     sum = (sum + float(input())) * x
  8.     i = i + 1
  9. sum = sum + float(input())
  10.  
  11. print(sum)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top