Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Codewars w Sandhika 13
AlfatArdiansa
Dec 5th, 2020
700
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
JavaScript
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
function
solution
(
number
)
{
let sum
=
0
;
for
(
let i
=
1
;
i
<
number
;
i
++
)
{
if
(
i
%
3
==
0
||
i
%
5
==
0
)
{
sum
+=
i
;
}
}
return
sum
;
}
console.
log
(
solution
(
10
)
,
23
)
;
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
Python | 7 min ago | 2.92 KB
Fetch info from PlayPilot
JavaScript | 10 min ago | 2.07 KB
Untitled
JSON | 18 min ago | 0.95 KB
Filmovi (Bakurski)
Java | 21 min ago | 4.80 KB
information
JavaScript | 54 min ago | 16.92 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 55 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
fix for bid input - Avada theme
PHP | 1 hour ago | 0.17 KB
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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!