Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
01. Number Pyramid
Spocoman
Dec 30th, 2021
(
edited
)
150
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
num
=
int
(
input
(
)
)
counter
=
1
for
row
in
range
(
1
,
num +
1
)
:
for
col
in
range
(
row
)
:
if
counter
>
num:
break
print
(
' '
,
end
=
f
'{counter}'
)
counter +
=
1
print
(
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
Python | 3 min ago | 88.07 KB
pull.lua
Lua | 3 min ago | 1.86 KB
MultiThreading 1
Java | 19 min ago | 2.96 KB
⭐GET ANY GIFT-CÂRD FOR FREE⭐ HZ
JavaScript | 1 hour ago | 0.06 KB
tveita kåre
C++ | 1 hour ago | 0.07 KB
⭐ 500$ For 45 Minutes HE
JavaScript | 1 hour ago | 0.06 KB
template c++
C++ | 1 hour ago | 1.76 KB
AccessorFunc but cool
Lua | 2 hours ago | 1.12 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!