diff --git a/Maths/FindMax.py b/Maths/FindMax.py new file mode 100644 index 000000000..451ba0363 --- /dev/null +++ b/Maths/FindMax.py @@ -0,0 +1,15 @@ +# NguyenU + +import math +def find_max(nums): + max = 0 + for x in nums: + if x > max: + max = x + print(max) + +def main(): + find_max([2, 4, 9, 7, 19, 94, 5]) + +if __name__ == '__main__': + main()