Ledger Nano X - The secure hardware wallet
SHARE
TWEET

3_kelipatan35

a guest Mar 28th, 2020 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input("Masukkan angka = "))
  2.  
  3. sum = 0
  4. for i in range(n):
  5.         if i%3 == 0 or i%5 == 0:
  6.             sum = sum + i
  7. print("Jumlah bilangan kelipatan 3 dan 5 adalah ", 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