feat: 📝 Update repo
This commit is contained in:
@ -41,6 +41,26 @@ def max3 (x: int, y: int, z: int) -> int:
|
||||
return m
|
||||
|
||||
|
||||
def max3(x: int, y: int, z: int) -> int:
|
||||
"""
|
||||
Function that return the max of 3 numbers
|
||||
::params:
|
||||
x: int -> The first value
|
||||
y: int -> The second value
|
||||
z: int -> The third value
|
||||
::returns:
|
||||
The value of the biggest value
|
||||
"""
|
||||
if x > y:
|
||||
m = x
|
||||
else:
|
||||
m = y
|
||||
if m > z:
|
||||
return m
|
||||
else:
|
||||
return z
|
||||
|
||||
|
||||
def main():
|
||||
print("Give a 3-digit number")
|
||||
n = int(input())
|
||||
|
Reference in New Issue
Block a user