SHARE
TWEET

Untitled

a guest Jun 18th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. count = 1
  2. final_sum = 0
  3.  
  4. while count < 1000:
  5.     if (count % 3 == 0) | (count % 5 == 0):
  6.         final_sum += count
  7.     count += 1
  8.  
  9. print(f'Final sum is {final_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