mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-24 05:21:09 +00:00
Merge branch 'NguyenU' of git://github.com/NguyenU/Python into NguyenU-NguyenU
This commit is contained in:
commit
11480295d4
15
Maths/FindMax.py
Normal file
15
Maths/FindMax.py
Normal file
|
@ -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()
|
Loading…
Reference in New Issue
Block a user