Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
triangle of numbers - fundamentals
Liliana797979
Apr 20th, 2021
108
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
JavaScript
0.24 KB
| None
|
0
0
raw
download
clone
embed
print
report
function
triangle
(
n
)
{
for
(
let i
=
1
;
i
<=
n
;
i
++
)
{
let numbers
=
""
;
for
(
let j
=
1
;
j
<=
i
;
j
++
)
{
numbers
+=
i
+
" "
;
}
console.
log
(
`$
{
numbers
}
`
)
;
}
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Make 1500$ in 20 MIN [Method] 2
JavaScript | 5 sec ago | 0.07 KB
✅ MAKE $12OO IN 10 MIN W
JavaScript | 10 sec ago | 0.07 KB
FREE BTC GUIDE A
JavaScript | 42 sec ago | 0.07 KB
✅ MAKE $12OO IN 10 MIN 3
JavaScript | 1 min ago | 0.07 KB
Make $200 in 15 minutes 2
JavaScript | 1 min ago | 0.07 KB
Make 1500$ in 20 MIN [Method] 3
JavaScript | 1 min ago | 0.07 KB
MAKE $900 INSTANTLY T
JavaScript | 1 min ago | 0.07 KB
✅ MAKE $12OO IN 10 MIN T
JavaScript | 2 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!