Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
print and sum - fundamentals
Liliana797979
Mar 17th, 2021
198
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
Older node trading
CSS | 24 min ago | 0.99 KB
FREE COINS METHOD
CSS | 24 min ago | 0.99 KB
How to hack an exchange
CSS | 24 min ago | 0.99 KB
Got $12,000 from this method
CSS | 24 min ago | 0.99 KB
This month smells like money
CSS | 24 min ago | 0.99 KB
Instant Profits Method
CSS | 24 min ago | 0.99 KB
Custom em_printables_pdf_get_invoice_number f...
7 hours ago | 0.24 KB
Exploit Documentation
CSS | 10 hours ago | 0.99 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!