Skip to content

Commit 390bbb6

Browse files
committed
Finding the max number
1 parent 8a76956 commit 390bbb6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Mathematics/findmax.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# NguyenU
2+
3+
import math
4+
5+
def find_max(nums):
6+
max = 0
7+
for x in nums:
8+
if x > max:
9+
max = x
10+
print max

0 commit comments

Comments
 (0)