Skip to content

Commit ddcea65

Browse files
authored
Merge pull request #427 from NguyenU/NguyenU
Finding the max number
2 parents 8a76956 + 390bbb6 commit ddcea65

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)