Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Pyramid of numbers
jumboframe
Jun 7th, 2018
168
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.22 KB
| None
|
0
0
raw
download
clone
embed
print
report
n
=
int
(
input
(
)
)
num
=
1
for
row
in
range
(
1
,
n+
1
)
:
for
col
in
range
(
0
,
row
)
:
if
num
>
n:
break
print
(
num
,
end
=
" "
)
num +
=
1
print
(
)
if
num
>
n:
break
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
This month smells like money
CSS | 14 min ago | 0.98 KB
Instant Profits Method
CSS | 14 min ago | 0.98 KB
Free Money Exploit
CSS | 14 min ago | 0.98 KB
+12,000$ in 2 days
CSS | 14 min ago | 0.98 KB
✅ Changelly Exploit
CSS | 14 min ago | 0.98 KB
doc
1 hour ago | 14.62 KB
myGiteaMcpConfig
JSON | 3 hours ago | 0.28 KB
error-after-delete
2 days ago | 129.44 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!