TheAlgorithms-Python/Maths/FindMax.py

11 lines
123 B
Python
Raw Normal View History

2018-10-23 02:36:08 +08:00
# NguyenU
import math
def find_max(nums):
max = 0
for x in nums:
if x > max:
max = x
print max