Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Max number [for loop]
simeonshopov
Sep 25th, 2019
196
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
n
=
int
(
input
(
"n = "
)
)
max_num
=
-
100000000000
for
i
in
range
(
n
)
:
num
=
int
(
input
(
)
)
if
num
>
max_num:
max_num
=
num
print
(
f
"max = {max_num}"
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
1 hour ago | 5.72 KB
Untitled
4 hours ago | 102.77 KB
OoT rando seed 4/29
5 hours ago | 68.66 KB
Untitled
7 hours ago | 6.62 KB
Untitled
11 hours ago | 5.89 KB
Untitled
15 hours ago | 5.88 KB
Untitled
17 hours ago | 7.05 KB
Untitled
21 hours ago | 5.51 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!