Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
print and sum - fundamentals
Liliana797979
Mar 17th, 2021
117
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
JavaScript
0.22 KB
| None
|
0
0
raw
download
clone
embed
print
report
function
printAndSum
(
start
,
end
)
{
let sum
=
0
;
let numbers
=
''
;
for
(
let i
=
start
;
i
<=
end
;
i
++
)
{
numbers
+=
i
+
' '
;
sum
+=
i
;
}
return
`$
{
numbers
}
\nSum
:
$
{
sum
}
`
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Make $200 in 15 minutes 2
JavaScript | 6 sec ago | 0.07 KB
MAKE $900 INSTANTLY X
JavaScript | 22 sec ago | 0.07 KB
FREE BTC GUIDE P
JavaScript | 25 sec ago | 0.07 KB
MAKE $900 INSTANTLY T
JavaScript | 43 sec ago | 0.07 KB
Make 1500$ in 20 MIN [Method] Q
JavaScript | 1 min ago | 0.07 KB
FREE BTC GUIDE 1
JavaScript | 1 min ago | 0.07 KB
✅ MAKE $12OO IN 10 MIN T
JavaScript | 1 min ago | 0.07 KB
✅ MAKE $12OO IN 10 MIN 3
JavaScript | 1 min ago | 0.07 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!